<commit_before># Median

> [Pareto (Type I)][pareto] distribution [median][median].


<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->

<section class="intro">

The [median][median] for a [Pareto (Type I)][pareto] random variable is

<!-- <equation class="equation" label="eq:median" align="center" raw="\operatorname{Median}\left( X \right) = \beta \sqrt[\alpha]{2}" alt="Median for a Pareto (Type I) distribution."> -->

<div class="equation" align="center" data-raw-text="\operatorname{Median}\left( X \right) = \beta \sqrt[\alpha]{2}" data-equation="eq:median">
    <img src="" alt="Median for a Pareto (Type I) distribution.">
    <br>
</div>

<!-- </equation> -->

where `α > 0` is the shape parameter and `β > 0` is the scale parameter.

</section>

<!-- /.intro -->

<!-- Package usage documentation. -->

<section class="usage">

## Usage

``` javascript
var median = require( '@stdlib/math/base/dist/pareto-type1/median' );
```

#### median( alpha, beta )

Returns the [median][median] of a [Pareto (Type I)][pareto] distribution with parameters `alpha` (shape parameter) and `beta` (scale parameter).

``` javascript
var v = mean( 2.0, 1.0 );
// returns 2.0

v = mean( 4.0, 12.0 );
// returns 16.0

v = mean( 8.0, 2.0 );
// returns ~2.286
```

If provided `NaN` as any argument, the function returns `NaN`.

``` javascript
var v = mean( NaN, 2.0 );
// returns NaN

v = mean( 2.0, NaN );
// returns NaN
```

If provided `alpha <= 0`, the function returns `NaN`.

``` javascript
var v = mean( 0.0, 1.0 );
// returns NaN

v = mean( -1.0, 1.0 );
// returns NaN
```

If provided `beta <= 0`, the function returns `NaN`.

``` javascript
var v = mean( 1.0, 0.0 );
// returns NaN

v = mean( 1.0, -1.0 );
// returns NaN
```

</section>

<!-- /.usage -->

<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

<section class="notes">

</section>

<!-- /.notes -->
<commit_msg>Fix copy-paste error<commit_after># Median

> [Pareto (Type I)][pareto] distribution [median][median].


<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->

<section class="intro">

The [median][median] for a [Pareto (Type I)][pareto] random variable is

<!-- <equation class="equation" label="eq:median" align="center" raw="\operatorname{Median}\left( X \right) = \beta \sqrt[\alpha]{2}" alt="Median for a Pareto (Type I) distribution."> -->

<div class="equation" align="center" data-raw-text="\operatorname{Median}\left( X \right) = \beta \sqrt[\alpha]{2}" data-equation="eq:median">
    <img src="" alt="Median for a Pareto (Type I) distribution.">
    <br>
</div>

<!-- </equation> -->

where `α > 0` is the shape parameter and `β > 0` is the scale parameter.

</section>

<!-- /.intro -->

<!-- Package usage documentation. -->

<section class="usage">

## Usage

``` javascript
var median = require( '@stdlib/math/base/dist/pareto-type1/median' );
```

#### median( alpha, beta )

Returns the [median][median] of a [Pareto (Type I)][pareto] distribution with parameters `alpha` (shape parameter) and `beta` (scale parameter).

``` javascript
var v = median( 2.0, 1.0 );
// returns 2.0

v = median( 4.0, 12.0 );
// returns 16.0

v = median( 8.0, 2.0 );
// returns ~2.286
```

If provided `NaN` as any argument, the function returns `NaN`.

``` javascript
var v = median( NaN, 2.0 );
// returns NaN

v = median( 2.0, NaN );
// returns NaN
```

If provided `alpha <= 0`, the function returns `NaN`.

``` javascript
var v = median( 0.0, 1.0 );
// returns NaN

v = median( -1.0, 1.0 );
// returns NaN
```

If provided `beta <= 0`, the function returns `NaN`.

``` javascript
var v = median( 1.0, 0.0 );
// returns NaN

v = median( 1.0, -1.0 );
// returns NaN
```

</section>

<!-- /.usage -->

<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

<section class="notes">

</section>

<!-- /.notes -->

{'fraction_non_alphanumeric': 0.19324487334137516, 'fraction_numerical': 0.023642943305186973, 'mean_word_length': 3.420042643923241, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '830152', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1370, 'n_words': 484}