Skip to content

Commit 3a4041d

Browse files
committed
chore: update implementation
--- 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: 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: missing_dependencies - 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 acc8d53 commit 3a4041d

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

lib/node_modules/@stdlib/stats/base/dists/beta/mgf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ logEachMap( 't: %0.4f, α: %0.4f, β: %0.4f, M_X(t;α,β): %0.4f', t, alpha, bet
190190

191191
#### stdlib_base_dists_beta_mgf( t, alpha, beta )
192192

193-
Returns the [mgf][mgf] of a [beta][beta-distribution] distribution with parameters `alpha` (first shape parameter) and `beta` (second shape parameter) with input value `t`.
193+
Evaluates the [moment-generating function][mgf] (MGF) for a [beta][beta-distribution] distribution with parameters `alpha` (first shape parameter) and `beta` (second shape parameter).
194194

195195
```c
196196
double y = stdlib_base_dists_beta_mgf( 0.5, 1.0, 1.0 );
@@ -247,7 +247,7 @@ int main( void ) {
247247
alpha = random_uniform( 1.0 + STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
248248
beta = random_uniform( 1.0 + STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
249249
y = stdlib_base_dists_beta_mgf( alpha, beta );
250-
printf( "t: %lf, alpha: %lf, beta: %lf, mgf(X;t,alpha,beta): %lf\n", t alpha, beta, y );
250+
printf( "t: %lf, α: %lf, β: %lf, M_X(t;α,β): %lf\n", t, alpha, beta, y );
251251
}
252252
}
253253
```

lib/node_modules/@stdlib/stats/base/dists/beta/mgf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ int main( void ) {
3838
alpha = random_uniform( 1.0 + STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
3939
beta = random_uniform( 1.0 + STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
4040
y = stdlib_base_dists_beta_mgf( t, alpha, beta );
41-
printf( "t: %lf, alpha: %lf, beta: %lf, mgf(X;t,alpha,beta): %lf\n", t, alpha, beta, y );
41+
printf( "t: %lf, α: %lf, β: %lf, M_X(t;α,β): %lf\n", t, alpha, beta, y );
4242
}
4343
}

lib/node_modules/@stdlib/stats/base/dists/beta/mgf/include/stdlib/stats/base/dists/beta/mgf.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 mgf of a beta distribution.
30+
* Evaluates the moment-generating function (MGF) for a beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a value `t`.
3131
*/
3232
double stdlib_base_dists_beta_mgf( const double t, const double alpha, const double beta );
3333

lib/node_modules/@stdlib/stats/base/dists/beta/mgf/lib/native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
2828
/**
2929
* Evaluates the moment-generating function (MGF) for a beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a value `t`.
3030
*
31+
* @private
3132
* @param {number} t - input value
3233
* @param {PositiveNumber} alpha - first shape parameter
3334
* @param {PositiveNumber} beta - second shape parameter

lib/node_modules/@stdlib/stats/base/dists/beta/mgf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param t input value
3333
* @param alpha first shape parameter
3434
* @param beta second shape parameter
35-
* @returns evaluated MGF
35+
* @return evaluated MGF
3636
*
3737
* @example
3838
* double y = stdlib_base_dists_beta_mgf( 0.5, 1.0, 1.0 );

0 commit comments

Comments
 (0)