Data Interpolation Algorithm Reference

“Linear” Interpolation Algorithm

Available option

Description

Note

Linear

Linear padding value

The value at t1 takes the value on the straight line between p1 and p2. The value at t takes the value on the straight line between p3 and p4. The value at t2 takes the value on the straight line between p5 and p6.
  • Does not support linear interpolation of non-numeric data.

  • If there is no value for the start time, the two data before and after the start time are linearly interpolated.

  • If there is no value for the end time, the two data before and after the end time are linearly interpolated.

  • When there is a decimal in the linear interpolation of int type data, the value needs to be rounded up

  • If there is no previous data or next data of a certain time, linear interpolation cannot be performed, and the return value of the time is null.

../_images/linear_illustration.png

“Previous” Interpolation Algorithm

Available option

Description

Note

Previous

The value before certain time

The value at t1 takes the value of p1. The value at t takes the value of p3. The value at t2 takes the value of p5.
  • If there is no previous data of a certain time, linear interpolation cannot be performed, and the return value of the time is null.

../_images/previous_illustration.png

“Near” Interpolation Algorithm

Available option

Description

Note

Near

The value near certain time

p2 is closer to t1, then the value at t1 takes the value of p2. p4 is closer to t, then the value at t takes the value of p4. p5 is closer to t2, then the value at t2 takes the value of p5.

../_images/near_illustration.png

“After” Interpolation Algorithm

Available option

Description

Note

After

The value after certain time

The value at t1 takes the value of p2. The value at t takes the value of p4. The value at t2 takes the value of p6.

../_images/after_illustration.png