我想插值(线性插值)数据.但这并不意味着什么.
这是我的数据.
timestamp | id | strength |
---|---|---|
1383260400000 | 10 | 0.007802251505435157 |
1383260400000 | 11 | 0.0050101566841440105 |
1383260400000 | 47 | 0.09910993935546883 |
1383260400000 | 48 | 0.16302926693340128 |
预期数据如下:
timestamp | id | strength |
---|---|---|
1383260400000 | 10 | 0.007802251505435157 |
1383260400000 | 11 | 0.0050101566841440105 |
1383260400000 | 12 | interpolated strength |
1383260400000 | 13 | interpolated strength |
1383260400000 | 14 | interpolated strength |
1383260400000 | 15 | interpolated strength |
1383260400000 | 16 | interpolated strength |
1383260400000 | 17 | interpolated strength |
1383260400000 | ... | interpolated strength |
1383260400000 | 47 | 0.09910993935546883 |
1383260400000 | 48 | 0.16302926693340128 |
还有另一个时间戳的数据.
timestamp | id | strength |
---|---|---|
1383261000000 | 73 | 0.00034018953748529387 |
1383261000000 | 80 | 0.015745603609017354 |
1383261000000 | 81 | 0.01332206498346922 |
1383261000000 | 101 | 0.003292329017912283 |
1383261000000 | 102 | 0.0028735259562922954 |
1383261000000 | 103 | 0.0033962211735905955 |
最后一个id是2025,时间戳是138346200000