We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8daa6 commit 90f0ddfCopy full SHA for 90f0ddf
lib/node_modules/@stdlib/stats/base/dists/signrank/pdf/src/main.c
@@ -35,16 +35,16 @@ static double weights( double x, const int32_t n ) {
35
double mlim;
36
37
if ( n == 0 ) {
38
- return ( x == 0 ) ? 1 : 0;
+ return ( x == 0 ) ? 1.0 : 0.0;
39
}
40
mlim = ( (double)n * ( (double)n + 1.0 ) ) / 2.0;
41
if ( x < 0 || x > mlim ) {
42
- return 0;
+ return 0.0;
43
44
- if ( x > mlim / 2 ) {
+ if ( x > mlim / 2.0 ) {
45
x = mlim - x;
46
47
- return weights( x - (double)n, n - 1 ) + weights( x, n - 1 );
+ return weights( x-(double)n, n-1 ) + weights( x, n-1 );
48
49
50
/**
0 commit comments