Skip to content

Commit 02ea794

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
4646
*/
4747
function median( x0, gamma ) {
4848
if (
49-
isnan( gamma ) ||
5049
isnan( x0 ) ||
50+
isnan( gamma ) ||
5151
gamma <= 0.0
5252
) {
5353
return NaN;

0 commit comments

Comments
 (0)