Data
¶Interface to specify a single data entry.
Hyunsu Cho
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
write
(OutputStream out)¶Serialize
out –
IOException –