URL: <https://savannah.gnu.org/bugs/?66894>
Summary: Domain value checking for random number
distributions
Group: GNU Scientific Library
Submitter: fermelelundi
Submitted: Tue 11 Mar 2025 09:14:23 PM UTC
Category: Documentation
Severity: 3 - Normal
Operating System:
Status: None
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 2.8
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 11 Mar 2025 09:14:23 PM UTC By: Fermé le Lundi <fermelelundi>
The randist module of random number distributions does not perform any
checking on the domain values of the parameters. This is in contrast with the
cumulative distribution module cdf, where domain value checking is performed
like in the following manner:
if (p > 1.0 || p < 0.0)
{
CDF_ERROR ("p < 0 or p > 1", GSL_EDOM);
}
Not checking domain values in randist is possibly done for performance reasons
and tacitly left to the developer in the application layer. If this is indeed
a design decision, I propose to make a note of this in the documentation, for
example in the prologue or introduction of doc/randist.rst:
No domain value checking is performed on the parameters.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66894>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
