My Project
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | List of all members
ZionBandwidthOptimizer.Compression.CompressorFloat Class Reference

Compresses floats to a given range with a given precision. http://stackoverflow.com/questions/8382629/compress-floating-point-numbers-with-specified-range-and-precision. More...

Public Member Functions

 CompressorFloat (float minValue, float maxValue, float precision)
 Default constructor.
 
 CompressorFloat (CompressorFloatConfig config)
 Constructor with config.
 
int GetRequiredBits ()
 Returns the number of bits required to store values between the specified range with the given precision.
 
uint Compress (float value)
 Compresses the value.
 
float Decompress (uint data)
 Decompresses the value.
 

Detailed Description

Compresses floats to a given range with a given precision. http://stackoverflow.com/questions/8382629/compress-floating-point-numbers-with-specified-range-and-precision.


The documentation for this class was generated from the following file: