Class ShapeSeriesPoint
- java.lang.Object
-
- edu.gsu.cs.dmlab.distance.dtw.shapeseries.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 Summary
Constructors Constructor Description ShapeSeriesPoint(double[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDimValue(int dimension)
Method to get the value of a specific dimension of this pointint
numDims()
Method gets the number of dimensions in the pointvoid
setDimValue(int dimension, double newValue)
Method to set the value of a specific dimension for this pointdouble[]
toArray()
Method returns an array of values that represent the value taken by this point on each dimension it is a member of.
-
-
-
Method Detail
-
numDims
public int numDims()
Description copied from interface:ISeriesPoint
Method gets the number of dimensions in the point- Specified by:
numDims
in interfaceISeriesPoint
- 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 interfaceISeriesPoint
- 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 interfaceISeriesPoint
- Parameters:
dimension
- The dimension to set the value ofnewValue
- 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 interfaceISeriesPoint
- Returns:
- An array of values this point takes on each dimension
-
-