bugGNU Scientific Library - Bugs: bug #66894, Domain value checking for random...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #66894: Domain value checking for random number distributions

Submitter:  Fermé le Lundi <fermelelundi>
Submitted:  Tue 11 Mar 2025 09:14:23 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Operating System: 
Status:  None Assigned to:  None
Open/Closed:  Open Release:  2.8

Discussion

Tue 11 Mar 2025 09:14:23 PM UTC, original submission:  

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.


Fermé le Lundi <fermelelundi>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by fermelelundi (Submitted the item)
  •  

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code