diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2015-08-27 16:12:52 +0300 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2015-08-27 16:12:52 +0300 |
commit | 9dea3fe1329ce392b9e420c89663f7bddabb068a (patch) | |
tree | cec3017bade98c13fee73edd817d228cf4214abe /src/clipper.h | |
parent | 55bf63ddd73978b46e19f3d8c5606d5677cf560f (diff) |
Makefile option (-DNPLM_DOUBLE_PRECISION) to switch between double and float.
Diffstat (limited to 'src/clipper.h')
-rw-r--r-- | src/clipper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clipper.h b/src/clipper.h index dda5c4d..e8c96a6 100644 --- a/src/clipper.h +++ b/src/clipper.h @@ -3,7 +3,7 @@ namespace nplm { struct Clipper{ - double operator() (double x) const { + user_data_t operator() (user_data_t x) const { return std::min(0.5, std::max(x,-0.5)); //return(x); } |