Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
9
node_modules/d3-array/src/median.js
generated
vendored
Normal file
9
node_modules/d3-array/src/median.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import quantile, {quantileIndex} from "./quantile.js";
|
||||
|
||||
export default function median(values, valueof) {
|
||||
return quantile(values, 0.5, valueof);
|
||||
}
|
||||
|
||||
export function medianIndex(values, valueof) {
|
||||
return quantileIndex(values, 0.5, valueof);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue