query::range_select::plan

Function linear_interpolation

source
fn linear_interpolation(
    ts: &[i64],
    data: &mut [ScalarValue],
    i1: usize,
    i2: usize,
    start: usize,
    end: usize,
) -> Result<()>
Expand description

use (ts[i1], data[i1]), (ts[i2], data[i2]) as endpoint, linearly interpolates element over the interval [start, end)