Skip to content

Commit 1089fc7

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 051664e commit 1089fc7

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

lib/node_modules/@stdlib/stats/base/dists/normal/stdev/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

102102
for ( i = 0; i < 100; i++ ) {
103103
mu[ i ] = random_uniform( -10.0, 10.0 );
104-
sigma[ i ] = random_uniform( 0.1, 10.0 );
104+
sigma[ i ] = random_uniform( 0.1, 10.0 );
105105
}
106106

107107
t = tic();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ static double random_uniform( const double min, const double max ) {
2828
int main( void ) {
2929
double sigma;
3030
double mu;
31-
double y;
32-
int i;
31+
double y;
32+
int i;
3333

3434
for ( i = 0; i < 10; i++ ) {
3535
mu = random_uniform( -5.0, 5.0 );

lib/node_modules/@stdlib/stats/base/dists/normal/stdev/src/main.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@
2929
* @example
3030
* double y = stdlib_base_dists_normal_stdev( 0.0, 1.0 );
3131
* // returns 1.0
32-
*
33-
* @example
34-
* double y = stdlib_base_dists_normal_stdev( 5.0, 3.0 );
35-
* // returns 3.0
36-
*
37-
* @example
38-
* double y = stdlib_base_dists_normal_stdev( NAN, 1.0 );
39-
* // returns NaN
40-
*
41-
* @example
42-
* double y = stdlib_base_dists_normal_stdev( 0.0, NAN );
43-
* // returns NaN
44-
*
45-
* @example
46-
* double y = stdlib_base_dists_normal_stdev( 0.0, 0.0 );
47-
* // returns NaN
4832
*/
4933
double stdlib_base_dists_normal_stdev( const double mu, const double sigma ) {
5034
if (

0 commit comments

Comments
 (0)