@bunchmark/presentation
Advanced tools
Comparing version 1.0.0-pre-5 to 1.0.0-pre-6
{ | ||
"name": "@bunchmark/presentation", | ||
"version": "1.0.0-pre-5", | ||
"version": "1.0.0-pre-6", | ||
"description": "The Bunchmark data presentation utilities", | ||
@@ -5,0 +5,0 @@ "type": "module", |
export { prensentStats, scientific } from "./src/text.js" | ||
export { getRanks } from "./src/race.js" | ||
export { getBins } from "./src/bins.js" | ||
export { getBins, getBounds, QNDMedian } from "./src/bins.js" | ||
@@ -1,3 +0,10 @@ | ||
export {getBins} | ||
export {getBins, getBounds, QNDMedian} | ||
const QNDMedian = ary => { | ||
ary.sort((a,b)=>{a-b}) | ||
if (ary.length % 2) return ary[(ary.length - 1)/2] | ||
else return (ary[(ary.length)/2-1] + ary[(ary.length)/2])/2 | ||
} | ||
function getBounds(entries) { | ||
@@ -4,0 +11,0 @@ const min = Math.min(...entries.map(e => Math.min(...e.workspace))) |
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
5856
120