I refactor a little your code in order to reduce methods size.
I commit the code on the repository. On Mon, Dec 19, 2016 at 10:27 PM, werner kassens <[hidden email]> wrote: > Hi again Serge, >>Where are the names are coming from ? I could not find any reference about >> that. > same time has already passed since i made that package, but i think i mainly > used Mathematica notation and certainly did not want to type too long names. > >>Mathematica use inverseCDF by default and you use modeBase instead. >>Which one is better to use as default ? > i am certainly the wrong person to ask. you can take a look at the paper i > mentioned earlier, most math programs cite it (mathematica, maple, julia, r, > national institute of standards & technology etc). the paper tests methods > for different quality criteria: inverseCDF is not symmetric (the median > criterium in the paper is also not fulfilled). i made modebased the default > because its method made sense to me <g> and i like to use it. i <g>like also > medianbased, but i think it has a somehow counterintuitive look (it is not > used often as a default, i remember only one case). > >>I will do some refactoring to go in this direction if you don't mind. > yes of course, please do that. > werner > > > On Mon, Dec 19, 2016 at 11:27 AM, Serge Stinckwich > <[hidden email]> wrote: >> >> On Thu, Dec 8, 2016 at 5:44 PM, Serge Stinckwich >> <[hidden email]> wrote: >> > I don't understand how quantile works. >> > When I do : >> > >> > #(1 2 3 4 5 6 7) asSortedCollection quantile: 1 / 4 >> > >> > I expect to have 2 and I have 5/2. >> >> Ok, I was able to reproduce the same results than Mathematica : >> http://reference.wolfram.com/language/ref/Quantile.html >> with the inverseCDF parameter: >> >> #(1 2 3 4 5 6 7) asSortedCollection quantile: 1 / 4 method: 'inverseCDF' >> >> Mathematica use inverseCDF by default and you use modeBase instead. >> Which one is better to use as default ? >> >> I see there is 8 different methods: >> 'modeBased', 'inverseCDF', 'closestObservation', 'California' , >> 'hydrologist' , 'Weibull', 'medianBased', 'normalDistribution' >> Where are the names are coming from ? I could not find any reference about >> that. >> >> Instead of using String for parameters, I think this is better to use >> a symbols to have something like: >> >> #(1 2 3 4 5 6 7) asSortedCollection quantile: 1 / 4 method: #inverseCDF >> >> I will do some refactoring to go in this direction if you don't mind. >> >> Regards, >> -- >> Serge Stinckwich >> UCBN & UMI UMMISCO 209 (IRD/UPMC) >> Every DSL ends up being Smalltalk >> http://www.doesnotunderstand.org/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "SciSmalltalk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [hidden email]. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "SciSmalltalk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [hidden email]. > For more options, visit https://groups.google.com/d/optout. -- Serge Stinckwich UCBN & UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/ -- You received this message because you are subscribed to the Google Groups "SciSmalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
On Tue, Dec 20, 2016 at 9:07 AM, Serge Stinckwich <[hidden email]> wrote: I refactor a little your code in order to reduce methods size. fine! werner You received this message because you are subscribed to the Google Groups "SciSmalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |