Spaces:
Paused
Paused
Download node_modules/@plotly/d3/src/arrays/quantile.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/arrays/quantile.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3/src/arrays/quantile.js
-
curl -L -o quantile.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/arrays/quantile.js
239 Bytes
| // R-7 per <http://en.wikipedia.org/wiki/Quantile> | |
| d3.quantile = function(values, p) { | |
| var H = (values.length - 1) * p + 1, | |
| h = Math.floor(H), | |
| v = +values[h - 1], | |
| e = H - h; | |
| return e ? v + e * (values[h] - v) : v; | |
| }; | |