FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

firtex::utility::CSmallFloat类参考

#include <SmallFloat.h>

所有成员的列表。

公有成员

 CSmallFloat (void)
 ~CSmallFloat (void)

静态公有成员

int32_t floatToIntBits (float value)
float intBitsToFloat (int32_t bits)
byte floatToByte (float f, int numMantissaBits, int zeroExp)
float byteToFloat (byte b, int numMantissaBits, int zeroExp)
byte floatToByte315 (float f)
float byte315ToFloat (byte b)
byte floatToByte52 (float f)
float byte52ToFloat (byte b)


构造及析构函数文档

firtex::utility::CSmallFloat::CSmallFloat void   )  [inline]
 

firtex::utility::CSmallFloat::~CSmallFloat void   )  [inline]
 


成员函数文档

float firtex::utility::CSmallFloat::byte315ToFloat byte  b  )  [inline, static]
 

byteToFloat(b, mantissaBits=3, zeroExponent=15)

float firtex::utility::CSmallFloat::byte52ToFloat byte  b  )  [inline, static]
 

byteToFloat(b, mantissaBits=5, zeroExponent=2)

float firtex::utility::CSmallFloat::byteToFloat byte  b,
int  numMantissaBits,
int  zeroExp
[inline, static]
 

Converts an 8 bit float to a 32 bit float.

byte firtex::utility::CSmallFloat::floatToByte float  f,
int  numMantissaBits,
int  zeroExp
[inline, static]
 

Converts a 32 bit float to an 8 bit float.
Values less than zero are all mapped to zero.
Values are truncated (rounded down) to the nearest 8 bit value.
Values between zero and the smallest representable value are rounded up.

参数:
f the 32 bit float to be converted to an 8 bit float (byte)
numMantissaBits the number of mantissa bits to use in the byte, with the remainder to be used in the exponent
zeroExp the zero-point in the range of exponent values
返回:
the 8 bit float representation

byte firtex::utility::CSmallFloat::floatToByte315 float  f  )  [inline, static]
 

floatToByte(b, mantissaBits=3, zeroExponent=15)
smallest non-zero value = 5.820766E-10
largest value = 7.5161928E9
epsilon = 0.125

byte firtex::utility::CSmallFloat::floatToByte52 float  f  )  [inline, static]
 

floatToByte(b, mantissaBits=5, zeroExponent=2)
smallest nonzero value = 0.033203125
largest value = 1984.0
epsilon = 0.03125

int32_t firtex::utility::CSmallFloat::floatToIntBits float  value  )  [inline, static]
 

float firtex::utility::CSmallFloat::intBitsToFloat int32_t  bits  )  [inline, static]
 


该类的文档由以下文件生成:

http://www.firtex.org http://www.sourceforge.net/projects/firtex