OpenWareLaboratory
|
Logarithmically scaled value. More...
Public Member Functions | |
const float | DEFAULT_DELTA |
const int | DEFAULT_DELTA |
const float | DEFAULT_DELTA |
const int | DEFAULT_DELTA |
const float | DEFAULT_EXP_C |
const int | DEFAULT_EXP_C |
const float | DEFAULT_EXP_C |
const int | DEFAULT_EXP_C |
const float | DEFAULT_EXP_K |
const int | DEFAULT_EXP_K |
const float | DEFAULT_EXP_K |
const int | DEFAULT_EXP_K |
const float | DEFAULT_LAMBDA |
const int | DEFAULT_LAMBDA |
const float | DEFAULT_LAMBDA |
const int | DEFAULT_LAMBDA |
const float | DEFAULT_LOG_C |
const int | DEFAULT_LOG_C |
const float | DEFAULT_LOG_C |
const int | DEFAULT_LOG_C |
const float | DEFAULT_LOG_K |
const int | DEFAULT_LOG_K |
const float | DEFAULT_LOG_K |
const int | DEFAULT_LOG_K |
T | get () |
T | getControl () |
LogarithmicValue () | |
Default range scales [0, 1] to [0.5, 2]. More... | |
LogarithmicValue (const LogarithmicValue< T > &other) | |
LogarithmicValue (T a, T b, T init) | |
LogarithmicValue (T value) | |
operator T () | |
LogarithmicValue< T, Value > & | operator*= (const T &other) |
LogarithmicValue< T, Value > & | operator+= (const T &other) |
LogarithmicValue< T, Value > & | operator-= (const T &other) |
LogarithmicValue< T, Value > & | operator/= (const T &other) |
LogarithmicValue< T, Value > & | operator= (const T &x) |
void | reset (T x) |
void | setRange (T a, T b) |
void | update (T x) |
Static Public Attributes | |
static const T | DEFAULT_DELTA |
static const T | DEFAULT_EXP_C |
static const T | DEFAULT_EXP_K |
static const T | DEFAULT_LAMBDA |
static const T | DEFAULT_LOG_C |
static const T | DEFAULT_LOG_K |
Protected Attributes | |
T | c = Value::DEFAULT_LOG_C |
T | k = Value::DEFAULT_LOG_K |
T | value |
Logarithmically scaled value.
Scales an input on the range [0, 1] logarithmically to the range [min, max]. Minimum may be less than maximum for inverted scale. Note: coefficients scale exponentially with range and may explode!
Ref: https://www.desmos.com/calculator/xljgqopbhy
Definition at line 253 of file SmoothValue.h.
|
inline |
Default range scales [0, 1] to [0.5, 2].
Definition at line 259 of file SmoothValue.h.
|
inline |
Definition at line 260 of file SmoothValue.h.
|
inline |
Definition at line 261 of file SmoothValue.h.
|
inline |
Definition at line 262 of file SmoothValue.h.
|
inherited |
Definition at line 11 of file SimpleValue.cpp.
|
inherited |
Definition at line 17 of file SimpleValue.cpp.
|
inherited |
Definition at line 61 of file SimpleValue.h.
|
inherited |
Definition at line 67 of file SimpleValue.h.
|
inherited |
Definition at line 12 of file SimpleValue.cpp.
|
inherited |
Definition at line 18 of file SimpleValue.cpp.
|
inherited |
Definition at line 62 of file SimpleValue.h.
|
inherited |
Definition at line 68 of file SimpleValue.h.
|
inherited |
Definition at line 13 of file SimpleValue.cpp.
|
inherited |
Definition at line 19 of file SimpleValue.cpp.
|
inherited |
Definition at line 63 of file SimpleValue.h.
|
inherited |
Definition at line 69 of file SimpleValue.h.
|
inherited |
Definition at line 10 of file SimpleValue.cpp.
|
inherited |
Definition at line 16 of file SimpleValue.cpp.
|
inherited |
Definition at line 60 of file SimpleValue.h.
|
inherited |
Definition at line 66 of file SimpleValue.h.
|
inherited |
Definition at line 14 of file SimpleValue.cpp.
|
inherited |
Definition at line 20 of file SimpleValue.cpp.
|
inherited |
Definition at line 64 of file SimpleValue.h.
|
inherited |
Definition at line 70 of file SimpleValue.h.
|
inherited |
Definition at line 15 of file SimpleValue.cpp.
|
inherited |
Definition at line 21 of file SimpleValue.cpp.
|
inherited |
Definition at line 65 of file SimpleValue.h.
|
inherited |
Definition at line 71 of file SimpleValue.h.
|
inlineinherited |
Definition at line 19 of file SimpleValue.h.
References SimpleValue< T >::value.
Referenced by SimpleValue< T >::operator T().
|
inline |
Definition at line 272 of file SmoothValue.h.
|
inline |
Definition at line 276 of file SmoothValue.h.
|
inline |
Definition at line 292 of file SmoothValue.h.
|
inline |
Definition at line 284 of file SmoothValue.h.
|
inline |
Definition at line 288 of file SmoothValue.h.
|
inline |
Definition at line 296 of file SmoothValue.h.
|
inline |
Definition at line 280 of file SmoothValue.h.
|
inlineinherited |
Definition at line 22 of file SimpleValue.h.
References SimpleValue< T >::value.
|
inline |
Definition at line 265 of file SmoothValue.h.
|
inline |
Definition at line 269 of file SmoothValue.h.
|
protected |
Definition at line 255 of file SmoothValue.h.
|
staticinherited |
Definition at line 52 of file SimpleValue.h.
|
staticinherited |
Definition at line 53 of file SimpleValue.h.
|
staticinherited |
Definition at line 54 of file SimpleValue.h.
|
staticinherited |
Definition at line 51 of file SimpleValue.h.
|
staticinherited |
Definition at line 55 of file SimpleValue.h.
|
staticinherited |
Definition at line 56 of file SimpleValue.h.
|
protected |
Definition at line 256 of file SmoothValue.h.
|
protectedinherited |
Definition at line 14 of file SimpleValue.h.
Referenced by SimpleValue< T >::get(), SimpleValue< T >::operator*=(), SimpleValue< T >::operator+=(), SimpleValue< T >::operator-=(), SimpleValue< T >::operator/=(), SimpleValue< T >::reset(), TakeoverValue< T, Value >::setLocked(), and SimpleValue< T >::update().