This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: bug in gsl_ran_chisq_pdf
Martin Jansche writes:
> Anyway, I haven't seen an explicit statement about the desired
> behavior of the _pdf functions when the main argument is outside the
> domain of definition. Personally, I find the currently implemented
> behavior reasonable: the univariate PDFs in GSL are defined on
> single intervals, and the _pdf functions return 0 for values outside
> the interval (the _cdf functions would have to return 0 below the
> defined interval and 1 above).
I have in mind,
return 0 outside valid range (as currently)
return NaN for invalid parameters (not actually implemented)