Public Types | |
typedef HxTagTransInVar | TransVarianceCategory |
Functor is translation invariant. More... | |
Public Methods | |
HxUpoTriStateThreshold (HxTagList &) | |
Constructor : get parameters from taglist. More... | |
DstValT | doIt (const SrcValT &x) |
Actual operation. More... | |
Static Public Methods | |
HxString | className () |
The name : "triStateThreshold". More... |
|
Functor is translation invariant.
|
|
Constructor : get parameters from taglist.
00043 { 00044 _level = HxGetTag<HxValue>(tl, "level"); 00045 _v1 = HxGetTag<HxValue>(tl, "v1"); 00046 _v2 = HxGetTag<HxValue>(tl, "v2"); 00047 _v3 = HxGetTag<HxValue>(tl, "v3"); 00048 } |
|
Actual operation.
00053 { 00054 if (x < _level) 00055 return _v1; 00056 if (x > _level) 00057 return _v3; 00058 return _v2; 00059 } |
|
The name : "triStateThreshold".
00064 { 00065 return HxString("triStateThreshold"); 00066 } |