URL: <https://savannah.gnu.org/bugs/?68098>
Summary: Feature: division by zero when data is perfectly
correlated
Group: GNU Scientific Library
Submitter: fermelelundi
Submitted: Fri 27 Feb 2026 08:03:40 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Operating System:
Status: None
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Release: 2.8
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 27 Feb 2026 08:03:40 AM UTC By: Fermé le Lundi <fermelelundi>
In function gsl_ran_bivariate_gaussian_pdf of file randist/bigausss.c a
division by zero error occurs when x and y are perfectly correlated: rho = 1
or rho = -1.
A solution would be to provide an error message:
if (rho <= -1.0 || rho >= 1.0)
CDF_ERROR ("Correlation parameter rho must be in range (-1, 1)", GSL_EDOM);
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68098>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
