gaussian icon indicating copy to clipboard operation
gaussian copied to clipboard

npm version of package does not include custom random function code

Open timmb opened this issue 3 years ago • 0 comments

Sorry if I'm missing something obvious here. But when pulling the package from npm I find there is no custom rand function for Gaussian.random.

See here

Both npm and Github report version 1.2.0.

But on Github in gaussian.js we have:

  Gaussian.prototype.random = function(num, randFn = null){
    let mean = this.mean;
    let std = this.standardDeviation;
    return Array(num).fill(0).map(() => {
      return generateGaussian(mean,std, randFn)
    })
  };

And on npm we have

  // Generate [num] random samples
  Gaussian.prototype.random = function(num){
    let mean = this.mean;
    let std = this.standardDeviation;
    return Array(num).fill(0).map(() => {
      return generateGaussian(mean,std)
    })
  };

timmb avatar May 24 '22 11:05 timmb