<commit_before># Arcsine

> Arcsine distribution constructor.


<!-- 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">

</section>

<!-- /.intro -->

<!-- Package usage documentation. -->

<section class="usage">

## Usage

``` javascript
var Arcsine = require( '@stdlib/math/base/dist/arcsine/ctor' );
```

#### Arcsine( \[a, b\] )

Returns an [arcsine][arcsine-distribution] distribution object.

``` javascript
var arcsine = new Arcsine();

var mu = arcsine.mean;
// returns 0.5
```

By default, `a = 0.0` and `b = 1.0`. To create a distribution having a different `a` (minimum support) and `b` (maximum support), provide parameter values.

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var mu = arcsine.mean;
// returns 3.0
```

---

## arcsine

An [arcsine][arcsine-distribution] distribution object has the following properties and methods...

### Writable Properties

#### arcsine.a

Minimum support of the distribution. `a` __must__ be a number smaller than `b`.

``` javascript
var arcsine = new Arcsine();

var a = arcsine.a
// returns 0.0

arcsine.a = 0.5;

a = arcsine.a;
// returns 0.5
```

#### arcsine.b

Maximum support of the distribution. `b` __must__ be a number larger than `a`.

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var b = arcsine.b
// returns 4.0

arcsine.b = 3.0;

b = arcsine.b;
// returns 3.0 
```

---

### Computed Properties

#### Arcsine.prototype.entropy

Returns the [differential entropy][entropy].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var entropy = arcsine.entropy;
// returns ~1.838
```

#### Arcsine.prototype.kurtosis

Returns the [excess kurtosis][kurtosis].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var kurtosis = arcsine.kurtosis;
// returns -1.5
```

#### Arcsine.prototype.mean

Returns the [expected value][expected-value].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var mu = arcsine.mean;
// returns 8.0
```

#### Arcsine.prototype.median

Returns the [median][median].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var median = arcsine.median;
// returns 8.0
```

#### Arcsine.prototype.mode

Returns the [mode][mode].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var mode = arcsine.mode;
// returns 4.0
```

#### Arcsine.prototype.skewness

Returns the [skewness][skewness].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var skewness = arcsine.skewness;
// returns 0.0
```

#### Arcsine.prototype.stdev

Returns the [standard deviation][standard-deviation].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var s = arcsine.stdev;
// returns ~2.828
```

#### Arcsine.prototype.variance

Returns the [variance][variance].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var s2 = arcsine.variance;
// returns 8.0
```

---

### Methods

#### Arcsine.prototype.cdf( x )

Evaluates the [cumulative distribution function][cdf] (CDF).

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var y = arcsine.cdf( 2.5 );
// returns ~0.333 
```

#### Arcsine.prototype.logpdf( x )

Evaluates the natural logarithm of the [probability density function][pdf] (PDF).

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var y = arcsine.logpdf( 2.5 );
// returns ~-1.0
```

#### Arcsine.prototype.pdf( x )

Evaluates the [probability density function][pdf] (PDF).

``` javascript<commit_msg>Fix lint errors<commit_after># Arcsine

> Arcsine distribution constructor.


<!-- 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">

</section>

<!-- /.intro -->

<!-- Package usage documentation. -->

<section class="usage">

## Usage

``` javascript
var Arcsine = require( '@stdlib/math/base/dist/arcsine/ctor' );
```

#### Arcsine( \[a, b\] )

Returns an [arcsine][arcsine-distribution] distribution object.

``` javascript
var arcsine = new Arcsine();

var mu = arcsine.mean;
// returns 0.5
```

By default, `a = 0.0` and `b = 1.0`. To create a distribution having a different `a` (minimum support) and `b` (maximum support), provide parameter values.

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var mu = arcsine.mean;
// returns 3.0
```

---

## arcsine

An [arcsine][arcsine-distribution] distribution object has the following properties and methods...

### Writable Properties

#### arcsine.a

Minimum support of the distribution. `a` __must__ be a number smaller than `b`.

``` javascript
var arcsine = new Arcsine();

var a = arcsine.a;
// returns 0.0

arcsine.a = 0.5;

a = arcsine.a;
// returns 0.5
```

#### arcsine.b

Maximum support of the distribution. `b` __must__ be a number larger than `a`.

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var b = arcsine.b;
// returns 4.0

arcsine.b = 3.0;

b = arcsine.b;
// returns 3.0
```

---

### Computed Properties

#### Arcsine.prototype.entropy

Returns the [differential entropy][entropy].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var entropy = arcsine.entropy;
// returns ~1.838
```

#### Arcsine.prototype.kurtosis

Returns the [excess kurtosis][kurtosis].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var kurtosis = arcsine.kurtosis;
// returns -1.5
```

#### Arcsine.prototype.mean

Returns the [expected value][expected-value].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var mu = arcsine.mean;
// returns 8.0
```

#### Arcsine.prototype.median

Returns the [median][median].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var median = arcsine.median;
// returns 8.0
```

#### Arcsine.prototype.mode

Returns the [mode][mode].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var mode = arcsine.mode;
// returns 4.0
```

#### Arcsine.prototype.skewness

Returns the [skewness][skewness].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var skewness = arcsine.skewness;
// returns 0.0
```

#### Arcsine.prototype.stdev

Returns the [standard deviation][standard-deviation].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var s = arcsine.stdev;
// returns ~2.828
```

#### Arcsine.prototype.variance

Returns the [variance][variance].

``` javascript
var arcsine = new Arcsine( 4.0, 12.0 );

var s2 = arcsine.variance;
// returns 8.0
```

---

### Methods

#### Arcsine.prototype.cdf( x )

Evaluates the [cumulative distribution function][cdf] (CDF).

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var y = arcsine.cdf( 2.5 );
// returns ~0.333
```

#### Arcsine.prototype.logpdf( x )

Evaluates the natural logarithm of the [probability density function][pdf] (PDF).

``` javascript
var arcsine = new Arcsine( 2.0, 4.0 );

var y = arcsine.logpdf( 2.5 );
// returns ~-1.0
```

#### Arcsine.prototype.pdf( x )

Evaluates the [probability density function][pdf] (PDF).

``` javascript
{'fraction_non_alphanumeric': 0.16848763657274296, 'fraction_numerical': 0.03076480736055204, 'mean_word_length': 3.598149372108394, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '1563424', 'n_tokens_mistral': 2796, 'n_tokens_neox': 2443, 'n_words': 725}