pub fn lttb_log(x: &[f64], y: &[f64], count: usize) -> Vec<usize>Expand description
Thins (x, y) to at most count samples with logarithmically spaced buckets.
The same selection as lttb, with the buckets laid out along ln(x) and
the triangle measured there too. On a spectrum drawn against a logarithmic
frequency axis this is the difference between the first decade getting one
sample and getting its share: linear buckets spend nearly every point on the
top decade, where the axis has the least room for them.
A bucket holding no sample contributes none, so the answer may be shorter
than count. An axis that does not increase, or holds no positive value to
take a logarithm of, is reduced by lttb instead of refused.