False Religious Beliefs
Performs Mantel-Haenszel's test for k strata of 2x2 tables.Mantel and Haenszel proposed this asymptotic test based on the chi-2 distribution. Assuming no three-way interaction (k independent strata). Ref.: DeltaProt toolbox at http://services.cbu.uib.no/software/deltaprot/Input: X: data matrix...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Mantel-Haenszel's test Download |
This function implements a method of using genetic algorithms to optimise the form of a polynomial, i.e. reducing the number of terms required in comparison to a least-squares fit using all possible terms, as described in the following paper:Clegg, J. et al, "The use of a genetic algorithm to...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (45): gapolyfitn Download |
Sends a Open Sound Control (OSC) message through a UDP connection oscsend(u,path) oscsend(u,path,types,arg1,arg2,...) oscsedn(u,path,types,[args]) u = UDP object with open connection. path = path-string types = string with types of arguments, supported: i = integer f = float s = string N = Null...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Send Open Sound Control (OSC) Messages Download |
When developing a software package, it is useful to test changes by periodically running all the functions in a validation library. This function automates the process.VALIDATE DIRNAME runs each M-file in the directory DIRNAME. Each M-fileshould be a function that takes no inputs and returns a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Automatic validation of software Download |
usage:-------------------------------------------------------- [cc] = chaincode(b,u) INPUT:-------------------------------------------------------- b - boundary as np-by-2 array unwrap - (optional, default=false) unwrap code OUTPUT: -------------------------------------------------------- cc is a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): Freeman Chain Code Download |
This function calculates the principal curvature directions and values of a triangulated mesh. The function first rotates the data so the normal of the current vertex becomes [-1 0 0], so we can describe the data by XY instead of XYZ. Secondly it fits a least-squares quadratic patch to the local...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 296.96 KB | Download (40): Patch Curvature Download |
Consider a binary classification task, and a real-valued predictor, where higher values denote more confidence that an instance is positive. By setting a fixed threshold on the output, we can trade-off recall (=true positive rate) versus false positive rate (resp. precision).Depending on the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Precision-Recall and ROC Curves Download |
Check if any element exceeds upper or lower limitEquivalent Matlab expression: any(Array(:) Upper)This Mex is faster especially for large arrays, because it returns after the first match is found and it does not create temporary arrays. For the 'finite' and 'absolute' options, this inplace...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): anyExceed Download |
[filelist, callers] = mydepfun(fn,recursive=false)filelist = cell array of all called functions, with full filepath includedcallers = cell array of all calling functions for each respective function in filelist
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): mydepfun extended Download |
function [returnFileGroup] = findFileSeries(filePath, allowskiplength, inclSmallerNumbers)% input is the filepath of one file in a series of files that have% some numeric indexing in their filenames% allowskiplength allows skipping of numbers in the index (default = 0 =>% no skipping allowed,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): findFileSeries Download |
M-file that calculate weeknumber based on a date. Date can be given as scalar or a vector. Datevalues can also be provided as textvalues, but then must a second variable describing the that format also be read in.In addtion can a third variable be sat to true or false, and this will add year...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Weeknumber Download |
legend_best_fit automatically positions the existing legend inside the axes to avoid covering the plotted data. I think it does a better job than the "Location", "Best" option in "legend" command.Example: legend_best_fit(axes_handle) Will position legend inside if it can, return false if it can...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Legend best fit Download |
[Jaccard,Dice,rfp,rfn]=sevaluate(m,o)gets label matrix for one tissue in segmented and ground truthand returns the similarity indicesm is a tissue in gold trutho is the same tissue in segmented imagerfp false pasitive ratiorfn false negative ratio
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): segmentation evaluatation Download |
shortcut for simple if conditions.The function works similar to Excel format.First argument is the condition, second is what to do if true, third is what to do if false.example 1:A = ifelse(x>thr, 5, 3)will execute:if x>thrA = 5elseA = 3endexample 2:A = ifelse(im>thr, im*2, im/2)will execute:A =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): if-then-else shortcut Download |
validateInput started when creating saveppt2. There was a need to take a large number of inputs, in any order, and make them usable to the script. Checking if an input argument has been passed can be done with isfield or if the 'force' option is enabled if the field is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): validateInput Download |
Simple helper files that return true/false based on whether inputs are even or odd, respectively% iseven - Returns true if the input is an even whole number % Syntax: tf = iseven(x) % x - numeric (real) input of any number of dimensions and sizes % tf - true for each element that is an even whole...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Iseven/Isodd Download |
DEPLOYPCODE recursively searches a directory for .m files, creating encrypted .p files with .m helpThis entry is ideal for those who have a project they need to deploy to P-files, but they want to retain HELP contents for all of their deployed files.-- SAHMDEPLOYPCODE recursively creates p-code...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): deploypcode - recursively pcode files with help attached Download |
Set value for value/argument pair in varargin/cellstring.If the argument does not exist it will be appended, if it exists it will be given the new specified value.Ex:args={'option1',true,'option2',false};args = setarg(args,'option1',false);args = setarg(args,'option3',false);%args is now:%args =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): setarg Download |
Print a struct to file. The output can be aligned to be more human-readable, or be separated by a specified delimiter.Requires the getarg function.Ex:struct2File( s, 'c:file.txt', 'align', true, 'sort', false );
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): struct2File Download |
% Confusion matrix-based model performance summary tool.% Works with character and numeric data, for any number of groups.%% Displays your confusion matrix as a 3D bar chart of your observations,% broken down by their actual and predicted groups.%% Takes into account the chance that your...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Confusion Matrix 3D with Overall PCC and Group Statistics Download |