Skip to content

Commit 8326709

Browse files
authored
chore: directly draw from desired distribution
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 0a104fb commit 8326709

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/logistic/entropy

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/logistic/entropy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ int main( void ) {
210210
int i;
211211
212212
for ( i = 0; i < 25; i++ ) {
213-
mu = random_uniform( 0.0, 10.0 ) - 5.0;
213+
mu = random_uniform( -5.0, 5.0 );
214214
s = random_uniform( 0.0, 20.0 );
215215
y = stdlib_base_dists_logistic_entropy( mu, s );
216216
printf( "µ: %lf, s: %lf, h(X;µ,s): %lf\n", mu, s, y );

0 commit comments

Comments
 (0)