Entry extends Union implements Data¶A reference implementation for the Data interface. This class is used to specify a single data entry. This implementation uses a C-style union so as to save memory space.
Hyunsu Cho
fvalue¶The value of the entry, in floating-point representation
missing¶If missing == -1, the entry is considered missing. Otherwise, the entry is not missing; check the other fields to obtain the actual value of the entry.
qvalue¶The value of the entry, in integer representation
getFValue()¶Obtain the floating-point value stored by the entry.
floating-point value
getQValue()¶Obtain the integer value stored by the entry.
integer value
isMissing()¶Test whether the entry is missing.
whether the entry is missing
setFValue(float val)¶Assign a floating-point value to the entry.
val – value to set
setMissing()¶Designate the entry as missing.
setQValue(int val)¶Assign an integer value to the entry. This is useful when feature values and split thresholds are quantized into integers.
val – value to set