summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-06 13:17:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-06 13:17:29 +0100
commit7e95904711c127fc2e65f2409868b1b279f19a8c (patch)
tree712828cd93a47d7aad0651f061ffd5450753c742
parenta692aff863ee03f201313168634a5ffe19890d83 (diff)
accela: simplify
-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 309243e4..d10f2bb0 100644
--- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp
+++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp
@@ -22,7 +22,7 @@ double FTNoIR_Filter::f(double vec, double thres)
return (vec - thres*high_thres_c) * high_thres_out + thres*high_thres_c;
if (vec > thres)
return (vec - thres) * low_thres_mult + thres;
- return pow(vec / thres, 2.0) * thres;
+ return pow(vec, 2.0) / thres;
}
void FTNoIR_Filter::filter(const double* input, double *output)