Skip to content

Commit b14a0fe

Browse files
committed
refactor: apply suggestions from previous PRs
--- 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: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: na - task: lint_c_benchmarks status: missing_dependencies - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: passed - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent d849c7f commit b14a0fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

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

126126
#### stdlib_base_dists_degenerate_logpmf( x, mu )
127127

128-
Evaluates the natural logarithm of the probability mass function (logPMF) for a degenerate distribution centered at `mu`.
128+
Evaluate the natural logarithm of the [probability mass function][pmf] (PMF) for a [degenerate distribution][degenerate-distribution].
129129

130130
```c
131131
double out = stdlib_base_dists_degenerate_logpmf( 2.0, 3.0 );

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpmf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include <sys/time.h>
2019
#include "stdlib/stats/base/dists/degenerate/logpmf.h"
2120
#include <math.h>
2221
#include <stdio.h>
2322
#include <stdlib.h>
2423
#include <time.h>
24+
#include <sys/time.h>
2525

2626
#define NAME "degenerate-logpmf"
2727
#define ITERATIONS 1000000

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
#include "stdlib/math/base/assert/is_nan.h"
2121

2222
/**
23-
* Evaluates the natural logarithm of the probability mass function (logPMF) for a degenerate distribution centered at `mu`.
23+
* Evaluates the natural logarithm of the probability mass function (PMF) for a degenerate distribution centered at `mu`.
2424
*
2525
* @param x input value
2626
* @param mu constant value of the distribution
27-
* @return natural logarithm of the probability mass function, or NaN if input is invalid
27+
* @return logarithm of probability mass function
2828
*
2929
* @example
3030
* double y = stdlib_base_dists_degenerate_logpmf( 2.0, 3.0 );

0 commit comments

Comments
 (0)