søn, 19 02 2012 kl. 08:53 -0500, skrev Jordi Gutiérrez Hermoso:
> 2012/2/19 Alois Schlögl <alois.schlo...@ist.ac.at>:
> > The users of the NaN-toolbox can choose the NaN-propagating function
> > sum() or the NaN-skipping function sumskipnan().
> 
> Oh, this is nice. I'm sorry, I thought you also shadowed the core sum
> function.
> 
> But why do you shadow the other functions? Matlab renames them instead:
> 
>     http://www.mathworks.com/help/toolbox/stats/nanmean.html
>     http://www.mathworks.com/help/toolbox/stats/nanstd.html
>     http://www.mathworks.com/help/toolbox/stats/nansum.html
> 
> I still think that having mean() do NaN-skipping is and unexpected
> (and curiously enough, your package is the first Google hit for "nan
> skipping behvaiour") but I think it's ok to do so if you rename the
> functions to a name that is obviously not the usual NaN-abiding sum(),
> mean(), and std().

The 'statistics' package provide such functions, I believe. I do not use
the 'NaN' package, but I always felt that the main attraction of this
package was that it overrides the default behaviour. And when you don't
want such behaviour? Well, you just don't load the package. I guess,
this makes the package more suitable for power users, but there's
nothing wrong with that. I wouldn't load the package by default in any
binary distribution, but otherwise I don't see any issues here.

Ah, well, I guess this just boils down to personal preference.

Søren


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to