Skip to content

Commit 20ebafa

Browse files
authored
fix: logical fix and clean up
Signed-off-by: Vinit Pandit <[email protected]>
1 parent 03d5538 commit 20ebafa

File tree

2 files changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/rayleigh/logpdf

2 files changed

+1
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/rayleigh/logpdf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static double benchmark( void ) {
101101
int i;
102102

103103
for ( i = 0; i < 100; i++ ) {
104-
x[ i ] = random_uniform( 20, 20 + STDLIB_CONSTANT_FLOAT64_EPS );
104+
x[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, STDLIB_CONSTANT_FLOAT64_EPS + 20.0 );
105105
sigma[ i ] = random_uniform( -100, 0 );
106106
}
107107

lib/node_modules/@stdlib/stats/base/dists/rayleigh/logpdf/src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "stdlib/constants/float64/pinf.h"
2424
#include "stdlib/constants/float64/ninf.h"
2525

26-
2726
/**
2827
* Evaluates the logarithm of the probability density function (PDF) for a Rayleigh distribution with scale parameter `sigma` at a value `x`.
2928
*

0 commit comments

Comments
 (0)