Skip to content

Commit b06072e

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function pdf( x, x0, gamma ) {
6868
var denom;
6969
if (
7070
isnan( x ) ||
71-
isnan( gamma ) ||
7271
isnan( x0 ) ||
72+
isnan( gamma ) ||
7373
gamma <= 0.0
7474
) {
7575
return NaN;

0 commit comments

Comments
 (0)