Skip to content

Commit a709d01

Browse files
committed
fix: align stats/base/dists/cauchy/quantile validation prologue with namespace majority
Reorder NaN guards in the public quantile so that `isnan( gamma )` precedes `isnan( x0 )`, matching the contiguous validation pattern present in 7 of the 9 sibling packages in `@stdlib/stats/base/dists/cauchy/*` (78% conformance). Behavior is unchanged: any matching branch returns `NaN`.
1 parent afe8812 commit a709d01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ var PI = require( '@stdlib/constants/float64/pi' );
7474
*/
7575
function quantile( p, x0, gamma ) {
7676
if (
77-
isnan( x0 ) ||
7877
isnan( gamma ) ||
78+
isnan( x0 ) ||
7979
gamma <= 0.0 ||
8080
isnan( p ) ||
8181
p < 0.0 ||

0 commit comments

Comments
 (0)