OpenWareLaboratory
SimpleValue.cpp
Go to the documentation of this file.
1 #include "SimpleValue.h"
2 #include "math.h"
3 
8 #define Q12_FACTOR ((float)(1<<12))
9 
10 template<> const float SimpleValue<float>::DEFAULT_LAMBDA = 0.9;
11 template<> const float SimpleValue<float>::DEFAULT_DELTA = 0.02;
12 template<> const float SimpleValue<float>::DEFAULT_EXP_C = 1;
13 template<> const float SimpleValue<float>::DEFAULT_EXP_K = 2*M_LN2;
14 template<> const float SimpleValue<float>::DEFAULT_LOG_C = 1.6487212707;
15 template<> const float SimpleValue<float>::DEFAULT_LOG_K = 5.74033482823*M_LN2;
16 template<> const int SimpleValue<int>::DEFAULT_LAMBDA = (int)(0.9*Q12_FACTOR);
17 template<> const int SimpleValue<int>::DEFAULT_DELTA = (int)(0.02*Q12_FACTOR);
18 template<> const int SimpleValue<int>::DEFAULT_EXP_C = (int)(1*Q12_FACTOR);
19 template<> const int SimpleValue<int>::DEFAULT_EXP_K = (int)(2*M_LN2*Q12_FACTOR);
20 template<> const int SimpleValue<int>::DEFAULT_LOG_C = (int)(1.6487212707*Q12_FACTOR);
21 template<> const int SimpleValue<int>::DEFAULT_LOG_K = (int)(5.74033482823*M_LN2*Q12_FACTOR);
#define Q12_FACTOR
The int constants are meant to provide reasonable defaults for use with OWL parameters,...
Definition: SimpleValue.cpp:8
Base class for a value that can be set, updated and retrieved (get).
Definition: SimpleValue.h:12