diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-16 10:52:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-16 10:52:59 +0200 |
commit | 7d3cb6229fffecc46d1a54fba4ed485bdff0cbe9 (patch) | |
tree | 3cd11a5f4246a4ed5e67e137d4a9647788a7c6e3 /filter-accela | |
parent | a672563ec86f86ae697f2c2eb3d0a8f94ac11808 (diff) |
filter/accela: the clamp doesn't work right
It leaves stutter. Best leave as it is.
Diffstat (limited to 'filter-accela')
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index b95de697..c6813b8e 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -154,11 +154,6 @@ void accela::filter(const double* input, double *output) output[k] *= dt; output[k] += last_output[k]; - if (signum(last_output[k] - output[k]) >= 0) - output[k] = std::fmax(input[k], output[k]); - else - output[k] = std::fmin(input[k], output[k]); - last_output[k] = output[k]; } } |