Class ShapeSeriesPoint

  • All Implemented Interfaces:
    ISeriesPoint

    public class ShapeSeriesPoint
    extends Object
    implements ISeriesPoint
    Author:
    Thomas Abeel, Stan Salvador, stansalvador@hotmail.com, refactored by Dustin Kempton, Data Mining Lab, Georgia State University
    • Constructor Detail

      • ShapeSeriesPoint

        public ShapeSeriesPoint​(double[] values)
    • Method Detail

      • numDims

        public int numDims()
        Description copied from interface: ISeriesPoint
        Method gets the number of dimensions in the point
        Specified by:
        numDims in interface ISeriesPoint
        Returns:
        The number of dimensions for this point
      • getDimValue

        public double getDimValue​(int dimension)
        Description copied from interface: ISeriesPoint
        Method to get the value of a specific dimension of this point
        Specified by:
        getDimValue in interface ISeriesPoint
        Parameters:
        dimension - The dimension to return the value of
        Returns:
        The value of the dimension that was passed in
      • setDimValue

        public void setDimValue​(int dimension,
                                double newValue)
        Description copied from interface: ISeriesPoint
        Method to set the value of a specific dimension for this point
        Specified by:
        setDimValue in interface ISeriesPoint
        Parameters:
        dimension - The dimension to set the value of
        newValue - The value to set the dimension of this point to
      • toArray

        public double[] toArray()
        Description copied from interface: ISeriesPoint
        Method returns an array of values that represent the value taken by this point on each dimension it is a member of.
        Specified by:
        toArray in interface ISeriesPoint
        Returns:
        An array of values this point takes on each dimension