17 #ifndef JUBATUS_CORE_FV_CONVERTER_NUM_FILTER_IMPL_HPP_
18 #define JUBATUS_CORE_FV_CONVERTER_NUM_FILTER_IMPL_HPP_
22 #include "../common/exception.hpp"
23 #include "../common/assert.hpp"
27 namespace fv_converter {
59 }
else if (value <
min_) {
76 double standard_deviation)
104 return 1.0 / (1 + std::exp(-
gain_ * (value -
bias_)));
116 #endif // JUBATUS_CORE_FV_CONVERTER_NUM_FILTER_IMPL_HPP_
double filter(double value) const
sigmoid_normalization_filter(double gain, double bias)
double filter(double value) const
linear_normalization_filter(double min, double max, bool truncate)
double filter(double value) const
#define JUBATUS_EXCEPTION(e)
double filter(double value) const
double standard_deviation_
gaussian_normalization_filter(double average, double standard_deviation)
#define JUBATUS_ASSERT_LT(a, b, messages)