Class AggregateShapeSeries
- java.lang.Object
-
- edu.gsu.cs.dmlab.distance.dtw.shapeseries.ShapeSeries
-
- edu.gsu.cs.dmlab.distance.dtw.shapeseries.AggregateShapeSeries
-
- All Implemented Interfaces:
IAggregateShapeSeries
,IShapeSeries
public class AggregateShapeSeries extends ShapeSeries implements IAggregateShapeSeries
Shape series class that shrinks the length and resolution of a series by averaging consecutive point ranges into a single representative point. The number of points averaged from a consecutive range is dependent upon the length of the input shape series and the desired size after being resized.- Author:
- Thomas Abeel, Stan Salvador, stansalvador@hotmail.com, refactored by Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description AggregateShapeSeries(ISeriesAlignmentFactory factory, IShapeSeries ts, int shrunkSize)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
aggregatePtSize(int idx)
Method that returns the number of points that were used to produce the aggregate point at the indicated index of the time series.-
Methods inherited from class edu.gsu.cs.dmlab.distance.dtw.shapeseries.ShapeSeries
addFirst, addLast, getMeasurementVectorAtNthPoint, getTimeAtNthPoint, numOfDimensions, setMaxCapacity, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.gsu.cs.dmlab.distance.dtw.shapeseries.interfaces.IShapeSeries
addFirst, addLast, getMeasurementVectorAtNthPoint, getTimeAtNthPoint, numOfDimensions, size
-
-
-
-
Constructor Detail
-
AggregateShapeSeries
public AggregateShapeSeries(ISeriesAlignmentFactory factory, IShapeSeries ts, int shrunkSize)
Constructor- Parameters:
factory
- Factory object used for construction of various objects used and returned by this objectts
- The input shape series to be represented by this reduced resolution seriesshrunkSize
- The size of this series after reduction of the input series
-
-
Method Detail
-
aggregatePtSize
public int aggregatePtSize(int idx)
Description copied from interface:IAggregateShapeSeries
Method that returns the number of points that were used to produce the aggregate point at the indicated index of the time series.- Specified by:
aggregatePtSize
in interfaceIAggregateShapeSeries
- Parameters:
idx
- The index of the point to get the information for- Returns:
- The number of points in the original time series that were used to produce the aggregate point
-
-