calculate-correlation
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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 @@ |
{ | ||
"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. |
16218
94