Simple addition to random module
Simple addition to random module - Student's t
Robert Kern robert.kern at gmail.comWed Sep 2 14:05:01 EDT 2009
- Previous message (by thread): Simple addition to random module - Student's t
- Next message (by thread): Simple addition to random module - Student's t
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Simple addition to random module - Student's t
- Next message (by thread): Simple addition to random module - Student's t
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list