Skip to content

Commit 1e8b500

Browse files
committed
fix: order validation checks by parameter position in stats/base/dists/cauchy/logcdf
Reorder NaN guards so checks follow declaration order `(x, x0, gamma)`. Behavior unchanged: any matching branch returns `NaN`.
1 parent 0ba6e8c commit 1e8b500

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/stats/base/dists/cauchy/logcdf/lib

lib/node_modules/@stdlib/stats/base/dists/cauchy/logcdf/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ var ONE_OVER_PI = 0.3183098861837907;
6767
function logcdf( x, x0, gamma ) {
6868
if (
6969
isnan( x ) ||
70-
isnan( gamma ) ||
7170
isnan( x0 ) ||
71+
isnan( gamma ) ||
7272
gamma <= 0.0
7373
) {
7474
return NaN;

0 commit comments

Comments
 (0)