summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-28 11:58:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-28 11:58:53 +0100
commit964fc8ab4587662821c96d3d9da084b8a2b354b0 (patch)
tree538b6fad20a9ecf04296e5d17d8731e5ca32febd
parentec207728c97e5f483ce1f9b0ff7449b8c6092bb5 (diff)
accela: scale up to thres exponentially, not linearly
-rw-r--r--ftnoir_filter_accela/ftnoir_filter_accela.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp
index d5cd4080..e2073915 100644
--- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp
+++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp
@@ -22,7 +22,7 @@ static double f(double vec, double thres)
return (vec - thres*4) * 600 + thres*4;
if (vec > thres)
return (vec - thres) * 150 + thres;
- return vec;
+ return pow(vec / thres, 2.0) * thres;
}
void FTNoIR_Filter::filter(const double* input, double *output)