Skip to content

Commit e8e9595

Browse files
committed
chore: declare variable
--- 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: 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: 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 e0190fb commit e8e9595

File tree

1 file changed

+7
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/gumbel/skewness/src

1 file changed

+7
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/gumbel/skewness/src/main.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
#include "stdlib/math/base/special/riemann_zeta.h"
2222
#include "stdlib/constants/float64/pi.h"
2323

24+
// VARIABLES //
25+
26+
static const double SKEWNESS = 12.0 * stdlib_base_sqrt( 6.0 ) * stdlib_base_zeta( 3.0 ) / ( STDLIB_CONSTANT_FLOAT64_PI*STDLIB_CONSTANT_FLOAT64_PI*STDLIB_CONSTANT_FLOAT64_PI );
27+
28+
29+
// MAIN //
30+
2431
/**
2532
* Returns the skewness for a Gumbel distribution with location `mu` and scale `beta`.
2633
*
@@ -33,8 +40,6 @@
3340
* // returns ~1.14
3441
*/
3542
double stdlib_base_dists_gumbel_skewness( const double mu, const double beta ) {
36-
double SKEWNESS = 12.0 * stdlib_base_sqrt( 6.0 ) * stdlib_base_zeta( 3.0 ) / ( STDLIB_CONSTANT_FLOAT64_PI*STDLIB_CONSTANT_FLOAT64_PI*STDLIB_CONSTANT_FLOAT64_PI );
37-
3843
if (
3944
stdlib_base_is_nan( mu ) ||
4045
stdlib_base_is_nan( beta ) ||

0 commit comments

Comments
 (0)