Skip to content

Commit bac6704

Browse files
authored
chore: update example and add missing space in stats/base/dists/normal/mean
PR-URL: #12104 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent a1aabee commit bac6704

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/normal/mean/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main( void ) {
3333

3434
for ( i = 0; i < 10; i++ ) {
3535
mu = random_uniform( -5.0, 5.0 );
36-
sigma = random_uniform( 0.0, 20.0 );
36+
sigma = random_uniform( 0.1, 20.0 );
3737
y = stdlib_base_dists_normal_mean( mu, sigma );
3838
printf( "µ: %.4f, σ: %.4f, Mean(X;µ,σ): %.4f\n", mu, sigma, y );
3939
}

lib/node_modules/@stdlib/stats/base/dists/normal/mean/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ tape( 'the function returns the expected value of a normal distribution', opts,
9797
sigma = data.sigma;
9898
for ( i = 0; i < mu.length; i++ ) {
9999
y = mean( mu[i], sigma[i] );
100-
if ( expected[i] !== null) {
100+
if ( expected[i] !== null ) {
101101
if ( y === expected[i] ) {
102102
t.strictEqual( y, expected[i], 'mu:'+mu[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
103103
} else {

0 commit comments

Comments
 (0)