Skip to content

Commit

Permalink
🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Jan 25, 2024
1 parent 62b0489 commit 401338c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions downsample_rs/src/minmaxlttb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ pub(crate) fn minmaxlttb_generic<Tx: Num + AsPrimitive<f64>, Ty: Num + AsPrimiti
n_out: usize,
minmax_ratio: usize,
f_minmax: fn(&[Tx], &[Ty], usize) -> Vec<usize>,
) -> Vec<usize>
where
// for<'a> &'a [Ty]: ArgMinMax,
{
) -> Vec<usize> {
assert_eq!(x.len(), y.len());
assert!(minmax_ratio > 1);
// Apply first min max aggregation (if above ratio)
Expand Down Expand Up @@ -179,10 +176,7 @@ pub(crate) fn minmaxlttb_generic_without_x<Ty: Num + AsPrimitive<f64>>(
n_out: usize,
minmax_ratio: usize,
f_minmax: fn(&[Ty], usize) -> Vec<usize>,
) -> Vec<usize>
where
// for<'a> &'a [Ty]: ArgMinMax,
{
) -> Vec<usize> {
assert!(minmax_ratio > 1);
// Apply first min max aggregation (if above ratio)
if y.len() / n_out > minmax_ratio {
Expand Down

0 comments on commit 401338c

Please sign in to comment.