2012/1/19 Arno Onken <asn...@asnelt.org>: > On 01/19/2012 05:38 PM, Carnë Draug wrote: >> I have just removed the strtrim funtion from the string package. >> >> I want to do the same for the zscore function from the statistics >> package. Is there any reason not to so? > > Removing the zscore function from the statistics package might break > legacy code. Compared to the Octave core zscore function, the zscore in > the statistics package also returns the mean and standard deviation.
> The best way to deal with this would probably be to change the Octave > core function to also return mean and standard deviation and then to > remove the zscore function from the statistics package. However, the > core zscore function uses the center function instead of calculating the > mean directly. So changing the core zscore function would complicate it > considerably. Nah, zscore is basically mu = mean(X); sigma = std(X) out = (X - mu)./sigma ##Except this still warns for now, sigh... It's pretty easy to change it return the mean and standard deviation. Since Matlab's zscore does this too, it's a Matlab-chasing bug anyways. I've pushed this change to the default branch: http://hg.savannah.gnu.org/hgweb/octave/rev/938a8d792c37 HTH, - Jordi G. H. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev