Subject: Re: smallTalk programming a binomial function with mean = X?
From: Serge Stinckwich (serge.stinckwich@gmail.com)
Date: Thu Mar 19 2009 - 02:53:49 CET
On Thu, Mar 19, 2009 at 12:29 AM, Nicolas Becu <nicolas.becu@gmail.com> wrote:
> Dear Mehdi
>
> Another way is to use an already existing function of the cormas kernel (see
> the cormas glossary that you can download on the website).
>
> IN your case it is possible that the following method will help
> Cormas normal: X sigma: stDev
> (where X is your mean, and stDev is the standard deviation of your
> normal distribution)
Yes, you are right, it's better to use the methods available in Cormas.
There are suppose to be more tested.
> You can call this method from anywhere, ... just use the keyword 'Cormas'
> before (as in Cormas random).
Cormas is not a keyword, but a class.
When you wrote : Cormas random, you send the unary message to the class Cormas.
Best regards,
-- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Smalltalkers do: [:it | All with: Class, (And love: it)] http://doesnotunderstand.org/