Skip to content
Merged
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
64 changes: 36 additions & 28 deletions lib/node_modules/@stdlib/stats/base/dists/chi/cdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,42 @@ y = mycdf( 1.5 );
// returns ~0.478
```

</section>

<!-- /.usage -->

<section class="examples">

## Examples

<!-- eslint no-undef: "error" -->

```javascript
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var uniform = require( '@stdlib/random/array/uniform' );
var logEachMap = require( '@stdlib/console/log-each-map' );
var cdf = require( '@stdlib/stats/base/dists/chi/cdf' );

var opts = {
'dtype': 'float64'
};
var x = uniform( 20, 0.0, 10.0, opts );
var k = discreteUniform( 20, 0, 10, opts );

logEachMap( 'x: %0.4f, k: %d, F(x;k): %0.4f', x, k, cdf );
```

</section>

<!-- /.examples -->

<!-- C interface documentation. -->

* * *

### C APIs
<section class="c">

## C APIs

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

Expand All @@ -137,7 +170,7 @@ y = mycdf( 1.5 );

<section class="usage">

#### Usage
### Usage

```c
#include "stdlib/stats/base/dists/chi/cdf.h"
Expand Down Expand Up @@ -213,32 +246,7 @@ int main( void ) {

</section>

<!-- /.usage -->

<section class="examples">

## Examples

<!-- eslint no-undef: "error" -->

```javascript
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var uniform = require( '@stdlib/random/array/uniform' );
var logEachMap = require( '@stdlib/console/log-each-map' );
var cdf = require( '@stdlib/stats/base/dists/chi/cdf' );

var opts = {
'dtype': 'float64'
};
var x = uniform( 20, 0.0, 10.0, opts );
var k = discreteUniform( 20, 0, 10, opts );

logEachMap( 'x: %0.4f, k: %d, F(x;k): %0.4f', x, k, cdf );
```

</section>

<!-- /.examples -->
<!-- /.c -->

<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->

Expand Down