Skip to content

Commit a7e2dbf

Browse files
chore: updates and refractor some file
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 0318ad8 commit a7e2dbf

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

lib/node_modules/@stdlib/stats/base/dists/poisson/logpmf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ for ( i = 0; i < 10; i++ ) {
171171

172172
#### stdlib_base_dists_poisson_logpmf( x, lambda )
173173

174-
Evaluates the natural logarithm of the probability mass function (PMF) for a Poisson distribution with mean parameter `lambda` at a value `x`.
174+
Evaluates the natural logarithm of the probability mass function (PMF) for a Poisson distribution with mean parameter `lambda`.
175175

176176
```c
177177
double out = stdlib_base_dists_poisson_logpmf( 4.0, 3.0 );

lib/node_modules/@stdlib/stats/base/dists/poisson/logpmf/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bench( pkg+':factory', function benchmark( b ) {
6969
var y;
7070
var i;
7171

72-
lambda = 10.0;
72+
lambda = 100;
7373
mypmf = logpmf.factory( lambda );
7474
x = new Float64Array( len );
7575

@@ -79,7 +79,7 @@ bench( pkg+':factory', function benchmark( b ) {
7979

8080
b.tic();
8181
for ( i = 0; i < b.iterations; i++ ) {
82-
y = mypmf( x );
82+
y = mypmf( x[ i % len ] );
8383
if ( isnan( y ) ) {
8484
b.fail( 'should not return NaN' );
8585
}

lib/node_modules/@stdlib/stats/base/dists/poisson/logpmf/include/stdlib/stats/base/dists/poisson/logpmf.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-
* Returns the logpmf of a Poisson distribution.
30+
* Evaluates the quantile function for a Poisson distribution with mean parameter `lambda`.
3131
*/
3232
double stdlib_base_dists_poisson_logpmf( const double x, const double lambda );
3333

lib/node_modules/@stdlib/stats/base/dists/poisson/logpmf/manifest.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"@stdlib/math/base/special/factorialln",
4444
"@stdlib/math/base/special/ceil",
4545
"@stdlib/math/base/special/ln",
46-
"@stdlib/math/base/assert/is-nan"
46+
"@stdlib/math/base/assert/is-nan",
47+
"@stdlib/constants/float64/pinf",
48+
"@stdlib/constants/float64/ninf"
4749
]
4850
},
4951
{
@@ -61,7 +63,9 @@
6163
"@stdlib/math/base/assert/is-nan",
6264
"@stdlib/math/base/assert/is-nonnegative-integer",
6365
"@stdlib/math/base/special/factorialln",
64-
"@stdlib/math/base/special/ceil"
66+
"@stdlib/math/base/special/ceil",
67+
"@stdlib/constants/float64/pinf",
68+
"@stdlib/constants/float64/ninf"
6569
]
6670
},
6771
{
@@ -79,7 +83,9 @@
7983
"@stdlib/math/base/assert/is-nan",
8084
"@stdlib/math/base/assert/is-nonnegative-integer",
8185
"@stdlib/math/base/special/factorialln",
82-
"@stdlib/math/base/special/ceil"
86+
"@stdlib/math/base/special/ceil",
87+
"@stdlib/constants/float64/pinf",
88+
"@stdlib/constants/float64/ninf"
8389
]
8490
}
8591
]

lib/node_modules/@stdlib/stats/base/dists/poisson/logpmf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
/**
29-
* Evaluates the quantile function for a Poisson distribution with mean parameter `lambda` at a probability `p`.
29+
* Evaluates the quantile function for a Poisson distribution with mean parameter `lambda`.
3030
*
3131
* @param x input value
3232
* @param lambda mean parameter

0 commit comments

Comments
 (0)