Remove outliers
Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method
Author: M Sohrabinia
There are several errors in the code which assume the data have zero mean (an assumption which cannot be consistently held through algorithm operation). Could be greatly improved. Until then, users should be very critical of algorithm outputs.
Update: I recently updated my machine, and after recompiling BCFCM3D, it appears to be working fine. I do, however, think the code would benefit from some free(*) statements within the mallocf and mallocd subfunctions. Although I am not a C-professional, I am pretty sure that this poses a significant memory leak that quickly becomes problematic when dealing with large volumes.
Hi. I have been having memory issues with this code. I have been segmenting large volumes (512x512x512) so I have been monitoring my RAM consumption using Windows task manager. When running the program, it slowly but steadily consumes more RAM up until about 7GB (out of 16GB). This takes only about 2 min, but then the program runs for about 10 min and finally crashes with an "Out of Memory" error when more memory clearly exists. What's worse is that MATLAB holds onto this ~6GB chunk of memory, and no manner of memory clearing or packing gets it back. I am not a mex expert, so maybe you could shed some light on this issue? Thanks in advance.
10 May 2013
Stem and leaf plot
This is a simple utility for making stem and leaf plots output to the command window.
Author: Jered Wells
farfan: ROUNDN is a default MATLAB function. I'm not sure when it was released, but perhaps your version of MATLAB is older than R2008b? Check out the MATLAB documentation for more details: http://www.mathworks.com/help/map/ref/roundn.html
Oliver: Sorry for the late reply. In the case of linear regression (when an intercept or constant term is included in the model), my RSQUARE function and the square of MATLAB's CORR will produce the same result. However, RSQUARE provides the option of computing the R-square statistic using an alternate method which prevents negative R-square values which can occur when no constant term is included in the fit model. Please reference John D'Errico's comment below for more details.
Also, for convenience, my function produces the RMSE of the fit to the data.
@Jered: ROUNDN is not a default function. It is part of the Mapping toolbox, I think if that constraint is specified on your file description, it would improve the quality of this submission.
23 May 2014
Center of Mass
CENTEROFMASS finds the center of mass of the N-dimensional input array
Author: Jered Wells
farfan: ROUNDN is a default MATLAB function. I'm not sure when it was released, but perhaps your version of MATLAB is older than R2008b? Check out the MATLAB documentation for more details: http://www.mathworks.com/help/map/ref/roundn.html
@Jered: ROUNDN is not a default function. It is part of the Mapping toolbox, I think if that constraint is specified on your file description, it would improve the quality of this submission.
Comment only
23 May 2014
Center of Mass
CENTEROFMASS finds the center of mass of the N-dimensional input array
farfan: ROUNDN is a default MATLAB function. I'm not sure when it was released, but perhaps your version of MATLAB is older than R2008b? Check out the MATLAB documentation for more details: http://www.mathworks.com/help/map/ref/roundn.html
Comment only