stockshark-channels
Advanced tools
Comparing version 1.0.27 to 1.0.28
{ | ||
"name": "stockshark-channels", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "provide channels", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -6,6 +6,8 @@ const calculators = require('../calculators') | ||
module.exports = function (channel) { | ||
module.exports = function (channel, { min, max }) { | ||
let data = channel.data.map(p => (p - channel.meta.min) / channel.meta.range) | ||
// let data = channel.data.map(p => (p - channel.meta.min) / channel.meta.range) | ||
let range = max - min | ||
let data = channel.data.map(p => (p - min) / range) | ||
return { | ||
@@ -12,0 +14,0 @@ data, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45422
794