(f func(time.Time) float64, pair model.SamplePair, testEpsilon float64)
| 195 | } |
| 196 | |
| 197 | func valueEpsilonCorrect(f func(time.Time) float64, pair model.SamplePair, testEpsilon float64) bool { |
| 198 | return epsilonCorrect(float64(pair.Value), f(pair.Timestamp.Time()), testEpsilon) |
| 199 | } |
| 200 | |
| 201 | func epsilonCorrect(actual, expected, epsilon float64) bool { |
| 202 | delta := math.Abs((actual - expected) / expected) |
no test coverage detected