Skip to content

Commit 0e2a163

Browse files
chore: minor clean up
1 parent 7a2fb05 commit 0e2a163

File tree

14 files changed

+18
-60
lines changed

14 files changed

+18
-60
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -157,30 +157,14 @@ for ( i = 0; i < 10; i++ ) {
157157

158158
#### stdlib_base_dists_bernoulli_cdf( x, p )
159159

160-
Evaluates the cumulative distribution function (CDF) for an bernoulli distribution.
160+
Evaluates the cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p`.
161161

162162
```c
163163
double y = stdlib_base_dists_bernoulli_cdf( 0.5, 0.5 );
164164
// returns ~0.5
165-
166-
y = stdlib_base_dists_bernoulli_cdf( 2.0, 0.1 );
167-
// returns ~1.0
168-
169-
y = stdlib_base_dists_bernoulli_cdf( -1.0, 0.3 );
170-
// returns ~0.0
171-
172-
y = stdlib_base_dists_bernoulli_cdf( NaN, 0.5 );
173-
// returns NaN
174-
175-
y = stdlib_base_dists_bernoulli_cdf( 0.0, NaN );
176-
// returns NaN
177-
178-
// Invalid probability
179-
y = stdlib_base_dists_bernoulli_cdf( 0.5, 1.4 );
180-
// returns NaN
181165
```
182166

183-
The function accepts the following arguments:
167+
The function accepts the following arguments
184168

185169
- **x**: `[in] double` input value.
186170
- **p**: `[in] double` success probability

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/benchmark/benchmark.native.js

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -60,29 +60,3 @@ bench( pkg+'::native', opts, function benchmark( b ) {
6060
b.pass( 'benchmark finished' );
6161
b.end();
6262
});
63-
64-
bench( pkg+':factory', opts, function benchmark( b ) {
65-
var mycdf;
66-
var p;
67-
var x;
68-
var y;
69-
var i;
70-
71-
p = 0.3;
72-
mycdf = cdf.factory( p );
73-
74-
b.tic();
75-
for ( i = 0; i < b.iterations; i++ ) {
76-
x = ( randu()*3.0 ) - 1.0;
77-
y = mycdf( x );
78-
if ( isnan( y ) ) {
79-
b.fail( 'should not return NaN' );
80-
}
81-
}
82-
b.toc();
83-
if ( isnan( y ) ) {
84-
b.fail( 'should not return NaN' );
85-
}
86-
b.pass( 'benchmark finished' );
87-
b.end();
88-
});

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/benchmark/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2024 The Stdlib Authors.
4+
# Copyright (c) 2025 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/binding.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @license Apache-2.0
22
#
3-
# Copyright (c) 2024 The Stdlib Authors.
3+
# Copyright (c) 2025 The Stdlib Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -167,4 +167,4 @@
167167
], # end actions
168168
}, # end target copy_addon
169169
], # end targets
170-
}
170+
}

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/examples/c/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2024 The Stdlib Authors.
4+
# Copyright (c) 2025 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -143,4 +143,4 @@ run: $(c_targets)
143143
clean:
144144
$(QUIET) -rm -f *.o *.out
145145

146-
.PHONY: clean
146+
.PHONY: clean

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/include.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @license Apache-2.0
22
#
3-
# Copyright (c) 2024 The Stdlib Authors.
3+
# Copyright (c) 2025 The Stdlib Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/include/stdlib/stats/base/dists/bernoulli/cdf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
Evaluates the cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p` at a value `x`.
30+
Evaluates the cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p`.
3131
*/
3232
double stdlib_base_dists_bernoulli_cdf( const double x, const double p );
3333

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)