|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompressionMethod
A compression method defines how 2k adjacent samples get transformed into a single compressed value.
Rather than implement this interface, most applications can use one of the predefined compression methods listed below.
ThinningCompressionMethod
,
AveragingCompressionMethod
,
SummingCompressionMethod
,
MinimizingCompressionMethod
,
MaximizingCompressionMethod
,
RandomSamplingCompressionMethod
Method Summary | |
---|---|
double |
getCompressedValue()
Compressed value representing all updates since last reset of this compression method. |
int |
getCount()
Returns number of samples (updates) in current compressed value. |
double |
mergeValues(double older,
double newer)
Combines two adjacent n-compressed values to form a single 2n-compressed value. |
void |
reset()
Eliminates the impact of previously seen data from the compression method. |
void |
update(double value)
Modifies compressed value to reflect one additional sample value. |
Method Detail |
---|
void update(double value)
value
- sampled value used to update the compressed value.double mergeValues(double older, double newer)
older
- the older of the two adjacent values.newer
- the newer of the two adjacent values.
void reset()
double getCompressedValue()
int getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |