GitXplorerGitXplorer
a

x-sampling

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
78c21d385bd32a16a53629cdf4100451e5ef6e0b

initial commit

aaiday-mar committed 3 years ago

README

The README file for this repository.

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