Small fix to datatypes

This commit is contained in:
Aditya Ujeniya 2024-08-26 13:18:06 +02:00
parent 8cefabac7f
commit 545c176974

View File

@ -35,7 +35,7 @@ func SimpleResampler(data []util.Float, old_frequency int64, new_frequency int64
// Inspired by one of the algorithms from https://skemman.is/bitstream/1946/15343/3/SS_MSthesis.pdf // Inspired by one of the algorithms from https://skemman.is/bitstream/1946/15343/3/SS_MSthesis.pdf
// Adapted from https://github.com/haoel/downsampling/blob/master/core/lttb.go // Adapted from https://github.com/haoel/downsampling/blob/master/core/lttb.go
func LargestTriangleThreeBucket(data []util.Float, old_frequency int, new_frequency int) ([]util.Float, int, error) { func LargestTriangleThreeBucket(data []util.Float, old_frequency int64, new_frequency int64) ([]util.Float, int64, error) {
if old_frequency == 0 || new_frequency == 0 { if old_frequency == 0 || new_frequency == 0 {
return data, old_frequency, nil return data, old_frequency, nil