Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

distributions

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distributions - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

10

package.json
{
"name": "distributions",
"description": "A collection of probability distribution functions",
"version": "0.2.0",
"version": "0.2.1",
"author": "Andreas Madsen <amwebdk@gmail.com>",

@@ -24,9 +24,5 @@ "main": "./distributions.js",

"devDependencies": {
"tap": "0.4.x"
"tap": "0.6.x"
},
"license": "MIT",
"engines": {
"node": "0.10",
"npm": "1"
}
"license": "MIT"
}

@@ -17,9 +17,9 @@ #distributions

console.log(mathfn.pdf(1)); // 0.199...
console.log(mathfn.cdf(1)); // 0.5
console.log(mathfn.inv(1)); // Infiniy
console.log(normal.pdf(1)); // 0.199...
console.log(normal.cdf(1)); // 0.5
console.log(normal.inv(1)); // Infiniy
console.log(mathfn.mean()); // 1
console.log(mathfn.median()); // 1
console.log(mathfn.variance()); // 4
console.log(normal.mean()); // 1
console.log(normal.median()); // 1
console.log(normal.variance()); // 4
```

@@ -26,0 +26,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc