Class ShapeSeries
- java.lang.Object
-
- edu.gsu.cs.dmlab.distance.dtw.shapeseries.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 Summary
Constructors Constructor Description ShapeSeries(int numOfDimensions)
ShapeSeries(ShapeSeries origTS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFirst(double time, ISeriesPoint values)
Adds a new point at the beginning of the time series.void
addLast(double time, ISeriesPoint values)
Adds a new point at the end of the time series.double[]
getMeasurementVectorAtNthPoint(int n)
Method to get the point value vector for the Nth point in the seriesdouble
getTimeAtNthPoint(int n)
Method to get the time component for the Nth point in the seriesint
numOfDimensions()
Method to get the number of dimensions the points in this series haveprotected void
setMaxCapacity(int capacity)
int
size()
Method to get the number of points in the time series
-
-
-
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 interfaceIShapeSeries
- 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 interfaceIShapeSeries
- 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 interfaceIShapeSeries
- 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 interfaceIShapeSeries
- 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 interfaceIShapeSeries
- Parameters:
time
- The time component of the point to insert into the seriesvalues
- 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 interfaceIShapeSeries
-
setMaxCapacity
protected void setMaxCapacity(int capacity)
-
-