Download node_modules/d3-interpolate/src/quantize.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 163 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-interpolate/src/quantize.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-interpolate/src/quantize.js
-
curl -L -o quantize.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-interpolate/src/quantize.js
163 Bytes
| export default function(interpolator, n) { | |
| var samples = new Array(n); | |
| for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1)); | |
| return samples; | |
| } | |