This commit is contained in:
Aditya Ujeniya
2024-09-17 10:49:32 +02:00
parent 545c176974
commit 4ac6cef01f
7 changed files with 26 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ func LargestTriangleThreeBucket(data []util.Float, old_frequency int64, new_freq
}
if new_frequency%old_frequency != 0 {
return nil, 0, errors.New(fmt.Sprintf("new sampling frequency : %d should be multiple of the old frequency : %d", new_frequency, old_frequency))
return nil, 0, fmt.Errorf("new sampling frequency : %d should be multiple of the old frequency : %d", new_frequency, old_frequency)
}
var step int = int(new_frequency / old_frequency)
@@ -100,7 +100,6 @@ func LargestTriangleThreeBucket(data []util.Float, old_frequency int64, new_freq
}
if math.IsNaN(float64(avgPointY)) {
flag_ = 1
}
}