Class DenseDataPoint


  • public class DenseDataPoint
    extends DataPoint
    • Constructor Detail

      • DenseDataPoint

        public DenseDataPoint​(java.lang.String text)
    • Method Detail

      • getFeatureValue

        public float getFeatureValue​(int fid)
        Description copied from class: DataPoint
        Get the value of the feature with the given feature ID
        Specified by:
        getFeatureValue in class DataPoint
        Returns:
      • setFeatureValue

        public void setFeatureValue​(int fid,
                                    float fval)
        Description copied from class: DataPoint
        Set the value of the feature with the given feature ID
        Specified by:
        setFeatureValue in class DataPoint
      • setFeatureVector

        public void setFeatureVector​(float[] dfVals)
        Description copied from class: DataPoint
        Sets the value of all features with the provided dense array of feature values
        Specified by:
        setFeatureVector in class DataPoint
      • getFeatureVector

        public float[] getFeatureVector()
        Description copied from class: DataPoint
        Gets the value of all features as a dense array of feature values.
        Specified by:
        getFeatureVector in class DataPoint