Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var opts = {
var mu = uniform( 10, -5.0, 5.0, opts );
var sigma = uniform( 10, 0.1, 20.0, opts );

logEachMap( 'µ: %lf, σ: %lf, E(X;µ,σ): %lf', mu, sigma, mean );
logEachMap( 'µ: %0.4f, σ: %0.4f, E(X;µ,σ): %0.4f', mu, sigma, mean );
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ var opts = {
var mu = uniform( 10, -5.0, 5.0, opts );
var sigma = uniform( 10, 0.1, 20.0, opts );

logEachMap( 'µ: %lf, σ: %lf, E(X;µ,σ): %lf', mu, sigma, mean );
logEachMap( 'µ: %0.4f, σ: %0.4f, E(X;µ,σ): %0.4f', mu, sigma, mean );
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var opts = {
var mu = uniform( 10, -5.0, 5.0, opts );
var sigma = uniform( 10, 0.1, 20.0, opts );

logEachMap( 'µ: %lf, σ: %lf, Median(X;µ,σ): %lf', mu, sigma, median );
logEachMap( 'µ: %0.4f, σ: %0.4f, Median(X;µ,σ): %0.4f', mu, sigma, median );
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ var opts = {
var mu = uniform( 10, -5.0, 5.0, opts );
var sigma = uniform( 10, 0.1, 20.0, opts );

logEachMap( 'µ: %lf, σ: %lf, Median(X;µ,σ): %lf', mu, sigma, median );
logEachMap( 'µ: %0.4f, σ: %0.4f, Median(X;µ,σ): %0.4f', mu, sigma, median );
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var p = uniform( 10, 0.0, 1.0, opts );
var mu = uniform( 10, -5.0, 5.0, opts );
var sigma = uniform( 10, 0.0, 5.0, opts );

logEachMap( 'p: %lf, µ: %lf, σ: %lf, Q(p;µ,σ): %lf', p, mu, sigma, quantile );
logEachMap( 'p: %0.4f, µ: %0.4f, σ: %0.4f, Q(p;µ,σ): %0.4f', p, mu, sigma, quantile );
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ var p = uniform( 10, 0.0, 1.0, opts );
var mu = uniform( 10, -5.0, 5.0, opts );
var sigma = uniform( 10, 0.0, 5.0, opts );

logEachMap( 'p: %lf, µ: %lf, σ: %lf, Q(p;µ,σ): %lf', p, mu, sigma, quantile );
logEachMap( 'p: %0.4f, µ: %0.4f, σ: %0.4f, Q(p;µ,σ): %0.4f', p, mu, sigma, quantile );
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Returns the differential entropy of a Bradford distribution.
*
* @private
* @param {PositiveNumber} c - shape parameter
* @returns {number} differential entropy
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Evaluates the quantile function for a raised cosine distribution with location parameter `mu` and scale parameter `s` at a probability `p`.
*
* @private
* @param {Probability} p - input value
* @param {number} mu - location parameter
* @param {NonNegativeNumber} s - scale parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Evaluates the probability density function (PDF) for a gamma distribution with shape parameter `alpha` and rate parameter `beta` at a value `x`.
*
* @private
* @param {number} x - input value
* @param {NonNegativeNumber} alpha - shape parameter
* @param {PositiveNumber} beta - rate parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var opts = {
};
var sigma = uniform( 10, 0.1, 20.0, opts );

logEachMap( 'σ: %lf, E(X;σ): %lf', sigma, mean );
logEachMap( 'σ: %0.4f, E(X;σ): %0.4f', sigma, mean );
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ var opts = {
// Generate positive scale parameters:
var sigma = uniform( 10, 0.1, 20.0, opts );

logEachMap( 'σ: %lf, E(X;σ): %lf', sigma, mean );
logEachMap( 'σ: %0.4f, E(X;σ): %0.4f', sigma, mean );
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ limitations under the License.

The [median][median] for a [Lévy][levy-distribution] random variable with location `μ` and scale `c > 0` is

<!-- <equation class="equation" label="eq:levy_expectation" align="center" raw="\operatorname{Median}\left( X \right) = \mu + \frac{c}{2(\operatorname{erfcinv}(1/2))^2}" alt="Mode for a Lévy distribution."> -->
<!-- <equation class="equation" label="eq:levy_median" align="center" raw="\operatorname{Median}\left( X \right) = \mu + \frac{c}{2(\operatorname{erfcinv}(1/2))^2}" alt="Median for a Lévy distribution."> -->

```math
\mathop{\mathrm{Median}}\left( X \right) = \mu + \frac{c}{2(\mathop{\mathrm{erfcinv}}(1/2))^2}
```

<!-- <div class="equation" align="center" data-raw-text="\operatorname{Median}\left( X \right) = \mu + \frac{c}{2(\operatorname{erfcinv}(1/2))^2}" data-equation="eq:levy_expectation">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@51534079fef45e990850102147e8945fb023d1d0/lib/node_modules/@stdlib/stats/base/dists/levy/median/docs/img/equation_levy_expectation.svg" alt="Mode for a Lévy distribution.">
<!-- <div class="equation" align="center" data-raw-text="\operatorname{Median}\left( X \right) = \mu + \frac{c}{2(\operatorname{erfcinv}(1/2))^2}" data-equation="eq:levy_median">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@51534079fef45e990850102147e8945fb023d1d0/lib/node_modules/@stdlib/stats/base/dists/levy/median/docs/img/equation_levy_median.svg" alt="Median for a Lévy distribution.">
<br>
</div> -->

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/stats/base/dists/levy/mode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ limitations under the License.

The [mode][mode] for a [Lévy][levy-distribution] random variable with location `μ` and scale `c > 0` is

<!-- <equation class="equation" label="eq:levy_expectation" align="center" raw="\operatorname{mode}\left( X \right) = \mu + \frac{c}{3}" alt="Mode for a Lévy distribution."> -->
<!-- <equation class="equation" label="eq:levy_mode" align="center" raw="\operatorname{mode}\left( X \right) = \mu + \frac{c}{3}" alt="Mode for a Lévy distribution."> -->

```math
\mathop{\mathrm{mode}}\left( X \right) = \mu + \frac{c}{3}
```

<!-- <div class="equation" align="center" data-raw-text="\operatorname{mode}\left( X \right) = \mu + \frac{c}{3}" data-equation="eq:levy_expectation">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@51534079fef45e990850102147e8945fb023d1d0/lib/node_modules/@stdlib/stats/base/dists/levy/mode/docs/img/equation_levy_expectation.svg" alt="Mode for a Lévy distribution.">
<!-- <div class="equation" align="center" data-raw-text="\operatorname{mode}\left( X \right) = \mu + \frac{c}{3}" data-equation="eq:levy_mode">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@51534079fef45e990850102147e8945fb023d1d0/lib/node_modules/@stdlib/stats/base/dists/levy/mode/docs/img/equation_levy_mode.svg" alt="Mode for a Lévy distribution.">
<br>
</div> -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Evaluates the cumulative distribution function (CDF) for a logistic distribution with location parameter `mu` and scale parameter `s` at a value `x`.
*
* @private
* @param {number} x - input value
* @param {number} mu - location parameter
* @param {NonNegativeNumber} s - scale parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Evaluates the probability mass function (PMF) for a Poisson distribution with mean parameter `lambda` at a value `x`.
*
* @private
* @param {number} x - input value
* @param {NonNegativeNumber} lambda - mean parameter
* @returns {Probability} evaluated PMF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Evaluates the probability density function (PDF) of the Wilcoxon signed rank test statistic with `n` observations.
*
* @private
* @param {number} x - input value
* @param {PositiveInteger} n - number of observations
* @returns {Probability} evaluated PDF
Expand Down