Package used to sample elements in an array or create samples from a starting point to an ending point using a certain distribution.
$ npm i ml-x-sampling
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]