Simple addition to random module - Student's t

Mark Dickinson dickinsm at
Wed Sep 2 18:28:14 CEST 2009

On Sep 2, 2:51 pm, Thomas Philips <tkp... at> 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?


More information about the Python-list mailing list