Data

public interface Data

Interface to specify a single data entry.

Author

Hyunsu Cho

Methods

getFValue

public float getFValue()

Obtain the floating-point value stored by the entry.

Returns

floating-point value

getQValue

public int getQValue()

Obtain the integer value stored by the entry.

Returns

integer value

isMissing

public boolean isMissing()

Test whether the entry is missing.

Returns

whether the entry is missing

setFValue

public void setFValue(float val)

Assign a floating-point value to the entry.

Parameters
  • val – value to set

setMissing

public void setMissing()

Designate the entry as missing.

setQValue

public void setQValue(int val)

Assign an integer value to the entry. This is useful when feature values and split thresholds are quantized into integers.

Parameters
  • val – value to set

write

public void write(OutputStream out)

Serialize

Parameters
  • out

Throws
  • IOException