
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
free-gaussian
Advanced tools
A JavaScript model of the Normal
(or Gaussian) distribution. To install run npm install free-gaussian
var gaussian = require('free-gaussian');
var distribution = gaussian(mean, variance);
mean
: the mean (μ) of the distributionvariance
: the variance (σ^2) of the distributionstandardDeviation
: the standard deviation (σ) of the distributionpdf(x)
: the probability density function, which describes the probability
of a random variable taking on the value xcdf(x)
: the cumulative distribution function, which describes the
probability of a random variable falling in the interval (−∞, x]ppf(x)
: the percent point function, the inverse of cdfmul(d)
: returns the product distribution of this and the given distribution. If a constant is passed in the distribution is scaled.div(d)
: returns the quotient distribution of this and the given distribution. If a constant is passed in the distribution is scaled by 1/d.add(d)
: returns the result of adding this and the given distributionsub(d)
: returns the result of subtracting this and the given distributionscale(c)
: returns the result of scaling this distribution by the given constantThis is a modified version of errcw's library with some additional features and a cleaned up code base.
FAQs
A JavaScript model of a Gaussian distribution
The npm package free-gaussian receives a total of 1,805 weekly downloads. As such, free-gaussian popularity was classified as popular.
We found that free-gaussian demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.