Simple addition to random module - Student's t
Robert Kern
robert.kern at gmail.com
Wed Sep 2 14:05:01 EDT 2009
On 2009-09-02 11:28 AM, Mark Dickinson wrote:
> On Sep 2, 2:51 pm, Thomas Philips<tkp... at gmail.com> wrote:
>> def student_t(df): # df is the number of degrees of freedom
>> if df< 2 or int(df) != df:
>> raise ValueError, 'student_tvariate: df must be a integer> 1'
>
> By the way, why do you exclude the possibility df=1 here?
Similarly, requiring df to be an integer is extraneous.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list