#include <CovarianceParameterization.h>
Public Types | |
enum | Method { float16 = 0, reduceMantissa = 1, logPack = 2, tanLogPack = 3, zero = 4, one = 5 } |
enum | Target { realValue = 0, ratioToRef = 1, differenceToRef = 2 } |
Public Member Functions | |
CompressionElement () | |
CompressionElement (Method m, Target t, int bitsUsed, std::vector< float > p) | |
uint16_t | pack (float value, float ref=0.) const |
float | unpack (uint16_t packed, float ref=0.) const |
Public Attributes | |
int | bits |
Method | method |
std::vector< float > | params |
Target | target |
Definition at line 9 of file CovarianceParameterization.h.
Enumerator | |
---|---|
float16 | |
reduceMantissa | |
logPack | |
tanLogPack | |
zero | |
one |
Definition at line 11 of file CovarianceParameterization.h.
Enumerator | |
---|---|
realValue | |
ratioToRef | |
differenceToRef |
Definition at line 12 of file CovarianceParameterization.h.
|
inline |
Definition at line 13 of file CovarianceParameterization.h.
Referenced by CovarianceParameterization::load().
|
inline |
Definition at line 14 of file CovarianceParameterization.h.
uint16_t CompressionElement::pack | ( | float | value, |
float | ref = 0. |
||
) | const |
Definition at line 11 of file CovarianceParameterization.cc.
References bits, differenceToRef, float16, MiniFloatConverter::float32to16(), logPack, method, logintpack::pack16log(), params, alignCSCRings::r, ratioToRef, realValue, reduceMantissa, MiniFloatConverter::reduceMantissaToNbits(), tanLogPack, target, relativeConstraints::value, and zero.
Referenced by CovarianceParameterization::loadedVersion().
float CompressionElement::unpack | ( | uint16_t | packed, |
float | ref = 0. |
||
) | const |
Definition at line 47 of file CovarianceParameterization.cc.
References bits, differenceToRef, float16, MiniFloatConverter::float16to32(), logPack, method, params, ratioToRef, realValue, reduceMantissa, tanLogPack, target, logintpack::unpack16log(), and zero.
Referenced by CovarianceParameterization::loadedVersion().
int CompressionElement::bits |
Definition at line 18 of file CovarianceParameterization.h.
Method CompressionElement::method |
Definition at line 16 of file CovarianceParameterization.h.
std::vector<float> CompressionElement::params |
Definition at line 19 of file CovarianceParameterization.h.
Target CompressionElement::target |
Definition at line 17 of file CovarianceParameterization.h.