open-index/open-npm huggingface dataset:
npm package: @foretold/cdf
Description: Cumulative distribution functions
Author: Ozzie Gooen
Latest version: 1.0.16

# CDF

This library helps convert samples to cumulative distribution functions and 
probability density functions, and then perform various functions on them. 
It uses the [pdfast](https://www.npmjs.com/package/pdfast) library to perform 
**Kernel Density Estimation** using triangular kernel.

## Samples

Manipulate sets of samples representing a stochastic variable.

Options:

- **min**: min value. This does not use pdfast's min, but rather removes all 
of the samples below it. - max: max value. This does not use pdfast's max, 
but rather removes all of the samples above it. This means that the resulting 
PDF or CDF may have some mass outside this range, due to KDE.
- **size**: number of points to represent the pdf or cdf. Defaults to 50.
- **width**: determine how many points to the left and right does an element affect, 
similar to bandwidth in kernel density estimation. Defaults to 2.

```javascript
let mySamples = new Samples([3, 4, 5, 6, 7, 8, 8, 8, 10, 11]);
let pdf = mySamples.toPdf({ min: 3, max: 8, width: 10, size: 1000 });
let pdfXs = pdf.xs;
let pdfYs = pdf.ys;
let cdf = mySamples.toCdf({ min: 3, max: 8, width: 10, size: 1000 });

// Get the 2nd percentile.
mySamples.getPercentile(2);

// Get the 95th percentile.
mySamples.getPercentile(95);

// Create a new Samples object, with the filter implemented.
mySamples.filter({ min: 3, max: 8 });
```
npm package: @forever9/mxswap-sdk
Description: 🛠 An SDK for building applications on top of mxswap.
Latest version: 1.0.6

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```