Skip to content

Commit da42529

Browse files
committed
refactor: apply suggestions from PR review
--- 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: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - 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: 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 --- --- 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: na - task: run_c_benchmarks status: na - 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 3f9a125 commit da42529

File tree

3 files changed

+4
-8
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/degenerate/logpmf

3 files changed

+4
-8
lines changed

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpmf/include/stdlib/stats/base/dists/degenerate/logpmf.h

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

2929
/**
30-
* Evaluates the natural logarithm of the probability mass function (logPMF) for a degenerate distribution centered at `mu`.
31-
*
32-
* @param x input value
33-
* @param mu constant value of the distribution
34-
* @return natural logarithm of the probability mass function
30+
* Evaluates the natural logarithm of the probability mass function (PMF) for a degenerate distribution centered at `mu`.
3531
*/
3632
double stdlib_base_dists_degenerate_logpmf( const double x, const double mu );
3733

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpmf/lib/native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ var addon = require( './../src/addon.node' );
2626
// MAIN //
2727

2828
/**
29-
* Evaluates the natural logarithm of the probability mass function (logPMF) for a degenerate distribution centered at `mu`.
29+
* Evaluates the natural logarithm of the probability mass function (PMF) for a degenerate distribution centered at `mu`.
3030
*
3131
* @private
3232
* @param {number} x - input value
3333
* @param {number} mu - constant value of the distribution
34-
* @returns {number} natural logarithm of the probability mass function
34+
* @returns {number} logarithm of probability mass function
3535
*
3636
* @example
3737
* var y = logpmf( 3.0, 3.0 );

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

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

19+
#include "stdlib/stats/base/dists/degenerate/logpmf.h"
1920
#include "stdlib/constants/float64/ninf.h"
2021
#include "stdlib/math/base/assert/is_nan.h"
21-
#include "stdlib/stats/base/dists/degenerate/logpmf.h"
2222

2323
/**
2424
* Evaluates the natural logarithm of the probability mass function (PMF) for a degenerate distribution centered at `mu`.

0 commit comments

Comments
 (0)