Socket
Socket
Sign inDemoInstall

calculate-correlation

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [1.2.1] - 2020-11-04
### Fixed
- Correction on the config object for the second example in README.
## [1.2.0] - 2020-10-25

@@ -10,0 +16,0 @@

2

package.json
{
"name": "calculate-correlation",
"version": "1.2.0",
"version": "1.2.1",
"description": "Calculates the correlation coefficient of two arrays. Simple, with no dependencies",

@@ -5,0 +5,0 @@ "keywords": [

@@ -40,2 +40,3 @@ # Calculate Correlation

console.log(correlation); // logs -0.442807443
console.log(typeof correlation); // logs number
```

@@ -54,3 +55,3 @@

string: true,
decimals: true,
decimals: 5,
};

@@ -90,6 +91,6 @@

- [x] Limit result number to _n_ decimal positions.
- [ ] Add a config option to calculate correlation of a **population** instead of a sample.
- [x] Add a config option to specify the decimal positions in result.
- [x] Add a config option to specify if the result is preferred as string or number.
- [ ] Add a config option to calculate correlation of a **population** instead of a sample.
- [ ] Throw different error messages depending on what was the problem with the input.
- [ ] Return other statistic values like _average_, _standard deviation_, _variance_, _covariance_, etc.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc