octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: removing zscore and strtrim that were moved to core


From: Carnë Draug
Subject: Re: removing zscore and strtrim that were moved to core
Date: Thu, 19 Jan 2012 17:21:32 +0000

On 19 January 2012 17:07, Arno Onken <address@hidden> wrote:
> 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. I am not sure if this is desirable and what's the best
> solution.

It seems to me that matlab zscore also returns the mean and standard
deviation so that's something that should be added to the core
function. Could zscore in core be changed to do it in in one or the
other way depending on the value of nargout? (I'mm CC'ing the
mantainers mailing list)

Carnë


reply via email to

[Prev in Thread] Current Thread [Next in Thread]