On 02/29/12 09:11, Dr. Alexander Klein wrote: > Am 28.02.2012 um 23:42 schrieb Jordi Gutiérrez Hermoso: > >> Ping on the discussion below. I really would like to settle this >> once and for all and stop this petty war we've been having about >> shadowing core functions and then enabling warnings when core >> functions are shadowed. > > The question that remains for me is whether shadowing of core > functions is really necessary for NaN-handling. Matlab has quite a > few nan...-functions that ignore NaNs without shadowing any core > funtions: > > http://www.mathworks.de/help/toolbox/stats/bq_w_hm.html#brjjdzm-1
Hi Alex, if the nan-prefixed functions are fine for you, that's ok and you do not need the NaN-toolbox. However, the number of nan-prefixed functions is limited and not sufficient, there are many more statistical parameters to estimate. Do you really want all statistical functions as nan-prefixed and without nan-prefix? That's a lot of duplicated functions which do basically the same thing except for the NaN-handling behavior. I know, I do not want this duplications. In order to avoid duplicated functions, I used shadowing as a mechanism within the NaN-tb. I know shadowing can do bad things, but I think it is justified in the present case. I'm using the NaN-toolbox regularly and not see any detrimental effect. But do not take my work, test it yourself ... As a side note, also the IEEE754 standard changed the behavior of min() and max() to skip NaN. Now, we have the situation that they behave exactly the same as nanmin() and nanmax(). The NaN-propagating min(), max() is not here anymore, because - nobody needs it. The same is true for most other statistical functions. <snip> > > I'd thus vote for keeping Alois' library, but suggest that maybe some > functions shadowing core functions be renamed if that seems viable. So, someone is considering to remove the NaN-tb from octave-forge ? Whatsoever, if the NaN- or TSA- toolbox disappear from octave-forge, you can get them from here: http://pub.ist.ac.at/~schloegl/matlab/NaN/ http://pub.ist.ac.at/~schloegl/matlab/tsa/ and as part of "biosig for octave and matlab" from here: http://biosig.sourceforge.net/download.html Alois > > Later, > > Alex > ------------------------------------------------------------------------------ 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