[Jaccard,Dice,rfp,rfn]=sevaluate(m,o) gets label matrix for one tissue in segmented and ground truth and returns the similarity indices m is a tissue in gold truth o is the same tissue in segmented image rfp false pasitive ratio rfn false negative ratio
Compute the distances (cross-ranges) from a set of points % P <p(1), p(2), ..., p(m)> on a plane to the planar polyline % V <v(1), v(2), ..., v(n)>, and the distances (ranges) from the % projections of P on V to the...
This package contains two functions CELLEQ and STRUCTEQ which compare two cell arrays or two structures respectively. The cells/structs may internally contain more nested cell and struct arrays which are compared recursively.
Feature...
Clipping is the main program. There are three inputs: y is the time record, threshhold_value is the clipping threshhold, and threshhold_samples is the number of consecutive data points exceeding the threshhold_value to indicate that the data is...
Simple wrapper for Matlab's subplot. Most arguments get passed straight through. The only difference is in how the thisPlot index is handled. Instead of being a counter-intuitive 1D index, you just use 2D indices. For example, if you want a...
This program gets the stock symbols of a user-defined index (NASDAQ, NYSE, AMEX, OTCBB, LSE) and/or sector. The data is retrieved from http://www.eoddata.com/ and from Yahoo Finance.
For example: - get_stock_symbols('NASDAQ') :...
This simple function allows you to create individual boxes in a box plot. The boxes do not have to be based on the same sample size, and to emphasize this fact the sample size n is displayed in the box's tick label. Outliers are identified in the...
This filter could be extended into a 2D image smoothing filter. The kernel can be switched easily. This is a program to test how a gaussian filter works on a set of 1-D data a e.g. a=[1 10 1 10 1 10 1] --- use this as input or use your...
Computes region adjacency graph of a labeled 2D or 3D image.
Two regions are considered as neighbor if they are separated by a background (i. e. with color 0) pixel in the horizontal or vertical direction, as well as depth direction for...
This is a simple gui application that used gaussian quadrature inegration based on index=1-3. It can be easily extended to higher order of indices for better accuracy. For more information visit: http://en.wikipedia.org/wiki/Gaussian_quadrature
Suppose you want the values from myStruct(:,:).vec(1) in a matrix the same size as the struct array myStruct, and myStruct(ii,jj).vec is a number, a vector, or a matrix for every ii and jj. myStruct can be a struct array of any size. The...
This is a collection of functions I wrote for use of MATLAB with tree-ring time series. Functions are included for skeleton plotting, group time-series plotting, and correlation analysis of seasonal climatic time series with tree-ring indices...
Affinity propagation clustering (AP) is a clustering algorithm proposed in "Brendan J. Frey and Delbert
Dueck. Clustering by Passing Messages Between Data Points. Science 315, 972 (2007)". It has some advantages: speed,...
D = DISTMAT(X,Y) for matrices X and Y returns the distance matrix where the (i,j)th entry is the d-norm distance between the ith and jth row of X and Y respectively.
DISTMAT(X,Y,d) computes a specific d-norm distance. Default=2
[FILESTATS, RANGES] = EXCELFILESUMMARY(FILELOC)
FILELOC: Enter the absolute path/name to the file you want to examine
FILESTATS: output argument will be a structure describing the file
RANGES: If this optional...
Given element and nodal data, this routine can be used to refine the selected elements. Only 4-node tetrahedron elements are allowed. During the refinement, only the edge which is the longest one of all the elements that share it will be cut,...
This function treats a matrix as a column-wise set of signals and circularly shifts each column so that it aligns with the first column of data so that the inner product between those columns is maximized with respect to all other shifts. ...
IND = SUB2IND4UP(I, J) returns the linear index equivalent to the row and column subscripts I and J
Let ind be a vector of indexes for entries of some upper triangular matrix. The entries are selected vertically so that:
ind...
Grism allows you to easily track the evolution of stock prices through watchlists, portfolios and charts. You can observe stocks, ETFs, indices and mutual funds from every major stock market in the world. It is written in Ruby using ruby-gtk2.
usage : map = blue2red; colormap(blue2red);
Returns a 256x3 array which can be used with colormap. map(1,:) corresponds to blue color, map(64,:) corresponds to cyan color, map(128,:) corresponds to green... |