Class ShapeSeries

  • All Implemented Interfaces:
    IShapeSeries
    Direct Known Subclasses:
    AggregateShapeSeries

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

      • ShapeSeries

        public ShapeSeries​(int numOfDimensions)
      • ShapeSeries

        public ShapeSeries​(ShapeSeries origTS)
    • Method Detail

      • size

        public int size()
        Description copied from interface: IShapeSeries
        Method to get the number of points in the time series
        Specified by:
        size in interface IShapeSeries
        Returns:
        Number of points in the series
      • numOfDimensions

        public int numOfDimensions()
        Description copied from interface: IShapeSeries
        Method to get the number of dimensions the points in this series have
        Specified by:
        numOfDimensions in interface IShapeSeries
        Returns:
        The number of dimensions for points in this series
      • getTimeAtNthPoint

        public double getTimeAtNthPoint​(int n)
        Description copied from interface: IShapeSeries
        Method to get the time component for the Nth point in the series
        Specified by:
        getTimeAtNthPoint in interface IShapeSeries
        Parameters:
        n - The position in the series to get the time component of
        Returns:
        The time component value at position n
      • getMeasurementVectorAtNthPoint

        public double[] getMeasurementVectorAtNthPoint​(int n)
        Description copied from interface: IShapeSeries
        Method to get the point value vector for the Nth point in the series
        Specified by:
        getMeasurementVectorAtNthPoint in interface IShapeSeries
        Parameters:
        n - The position in the series to get the point value vector of
        Returns:
        The point value vector at position n
      • addFirst

        public void addFirst​(double time,
                             ISeriesPoint values)
        Description copied from interface: IShapeSeries
        Adds a new point at the beginning of the time series. The time component must be before the time component of the first item in this series. The values component must also have the correct number of dimensions for this series.
        Specified by:
        addFirst in interface IShapeSeries
        Parameters:
        time - The time component of the point to insert into the series
        values - The point to insert into the series
      • addLast

        public void addLast​(double time,
                            ISeriesPoint values)
        Description copied from interface: IShapeSeries
        Adds a new point at the end of the time series. The time component must be after the time component of the last item in this series. The values component must also have the correct number of dimensions for this series.
        Specified by:
        addLast in interface IShapeSeries
      • setMaxCapacity

        protected void setMaxCapacity​(int capacity)