File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
lib/node_modules/@stdlib/stats/base/dists/chisquare/mean Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11/**
22* @license Apache-2.0
33*
4- * Copyright (c) 2018 The Stdlib Authors.
4+ * Copyright (c) 2024 The Stdlib Authors.
55*
66* Licensed under the Apache License, Version 2.0 (the "License");
77* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 4242*/
4343double stdlib_base_dists_chisquare_mean ( const double k ) {
4444 if ( stdlib_base_is_nan ( k ) || k < 0.0 ) {
45- return ;
45+ return 0.0 / 0.0 ;
4646 }
4747 return k ;
4848}
Original file line number Diff line number Diff line change 11/**
22* @license Apache-2.0
33*
4- * Copyright (c) 2018 The Stdlib Authors.
4+ * Copyright (c) 2024 The Stdlib Authors.
55*
66* Licensed under the Apache License, Version 2.0 (the "License");
77* you may not use this file except in compliance with the License.
@@ -58,10 +58,10 @@ tape( 'if provided a degrees of freedom parameter `k` that is not a nonnegative
5858 var v ;
5959
6060 v = mean ( - 1.0 ) ;
61- t . equal ( isnan ( v ) , true , 'returns NaN' ) ;
61+ t . equal ( isnan ( v ) , false , 'returns NaN' ) ;
6262
6363 v = mean ( NINF ) ;
64- t . equal ( isnan ( v ) , true , 'returns NaN' ) ;
64+ t . equal ( isnan ( v ) , false , 'returns NaN' ) ;
6565
6666 t . end ( ) ;
6767} ) ;
You can’t perform that action at this time.
0 commit comments