Skip to content

Commit c8d7278

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ var LNPI = require( '@stdlib/constants/float64/ln-pi' );
6969
function logpdf( x, x0, gamma ) {
7070
if (
7171
isnan( x ) ||
72-
isnan( gamma ) ||
7372
isnan( x0 ) ||
73+
isnan( gamma ) ||
7474
gamma <= 0.0
7575
) {
7676
return NaN;

0 commit comments

Comments
 (0)