Skip to content

Commit

Permalink
Small fix to datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
adityauj committed Aug 26, 2024
1 parent 8cefaba commit 545c176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resampler/resampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 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 {
return data, old_frequency, nil
Expand Down

0 comments on commit 545c176

Please sign in to comment.