Skip to content

aiday-mar/x-sampling

Repository files navigation

x-sampling

NPM version build status Test coverage npm download

Package used to sample elements in an array or create samples from a starting point to an ending point using a certain distribution.

Installation

$ npm i ml-x-sampling

Usage

import xSampling from 'ml-x-sampling';

let result = xSampling({
  startPoint: 1,
  endPoint: 100,
  nbPoints: 10,
  includeEnd: true,
  distribution: 'uniform',
});

// result is: [1, 12, 23, 34, 45, 56, 67, 78, 89, 100]

License

MIT

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published