Download node_modules/d3-array/src/median.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/median.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-array/src/median.js
-
curl -L -o median.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/median.js
245 Bytes
| 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); | |
| } | |