File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
lib/node_modules/@stdlib/stats/base/dists/gumbel/skewness/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 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*
3340* // returns ~1.14
3441*/
3542double 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 ) ||
You can’t perform that action at this time.
0 commit comments