3 ms·
Just the other day, @mbostock posted this: "Given an array of length n, how would you select m ≤ n evenly-spaced samples from the array? Surprise: you can use B
by rgovostes 6y ago
Just the other day, @mbostock posted this: "Given an array of length n, how would you select m ≤ n evenly-spaced samples from the array? Surprise: you can use Bresenham’s line algorithm."
https://observablehq.com/@mbostock/evenly-spaced-sampling https://observablehq.com/@mbostock/evenly-spaced-sampling