Good work, that's probably the only easy way to read GRADS file. Unfortunately, it has some problem with some CTL headers...e.g. it doesn't accept ALL the data formats and the use of '*' as comment character.
23 Mar 2012
Creates an ensemble of cart trees similar to the matlab TreeBagger class.
Very good software, thank you for your effort!
I was wondering whether a replace with replacement is really implemented in this method as the documentation says.
When you make (lines 43-44):
TDindx = round(numel(Labels)*rand(n,1)+.5);
(NOTE: why not using 'randi' function?)
you get 'n' indexes and THEN you make:
TDindx = unique(TDindx);
removing all the duplicates (or more)!!!
Is it correct?