Package edu.gsu.cs.dmlab.factory
Class InterpolationFactory
- java.lang.Object
-
- edu.gsu.cs.dmlab.factory.InterpolationFactory
-
- All Implemented Interfaces:
IInterpolationFactory
,ISeriesAlignmentFactory
public class InterpolationFactory extends Object implements IInterpolationFactory, ISeriesAlignmentFactory
-
-
Constructor Summary
Constructors Constructor Description InterpolationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IShapeSeriesAligner
getAligner()
Method gets a shape aligner object used to find the least cost alignment of points in a series that is treated as though it was a timeseries.IAlignmentInfo
getAlignmentInfo(double distance, IAlignmentPath path)
IAlignmentPath
getAlignmentPath(int size)
Method gets an alignment path object of a set sizeICostMatrix
getCostMatrix(ISearchWindow window)
Method gets a cost matrix for a search windowISearchWindow
getExpandedSearchWindow(IShapeSeries tsI, IShapeSeries tsJ, IAggregateShapeSeries shrunkI, IAggregateShapeSeries shrunkJ, IAlignmentPath shrunkWarpPath)
IAggregateShapeSeries
getReducedTimeSeries(IShapeSeries series, int reducedSize)
ISTInterpolationEvent
getSTEvent(int id, org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Gets an event report object is representing an object from the database and not one that has been interpolated.ISTInterpolationEvent
getSTEvent(org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Gets a new event report object that assumes that the object is representing an interpolated event object.ISTInterpolationTrajectory
getSTTrajectory(List<ISTInterpolationEvent> events)
Gets a trajectory object that contains the list of ISTInterpolationEvents that are passed in trajectory.IShapeSeries
getTimeSeries(int nDims)
ISeriesPoint
getTSPoint(double[] values)
-
-
-
Method Detail
-
getSTEvent
public ISTInterpolationEvent getSTEvent(org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Description copied from interface:IInterpolationFactory
Gets a new event report object that assumes that the object is representing an interpolated event object.- Specified by:
getSTEvent
in interfaceIInterpolationFactory
- Parameters:
timePeriod
- The valid time for the event representation.type
- The type of event that the object represents.geometry
- The geometry of the object.- Returns:
- A new ISTInterpolationEvent object with the passed in information
-
getSTEvent
public ISTInterpolationEvent getSTEvent(int id, org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Description copied from interface:IInterpolationFactory
Gets an event report object is representing an object from the database and not one that has been interpolated.- Specified by:
getSTEvent
in interfaceIInterpolationFactory
- Parameters:
id
- The id of the event in the database so we can reference back to the database to store the interpolated objects between the object and another one from the database.timePeriod
- The valid time for the event representation.type
- The type of event that the object represents.geometry
- The geometry of the object.- Returns:
- A new ISTInterpolationEvent object with the passed in information
-
getSTTrajectory
public ISTInterpolationTrajectory getSTTrajectory(List<ISTInterpolationEvent> events)
Description copied from interface:IInterpolationFactory
Gets a trajectory object that contains the list of ISTInterpolationEvents that are passed in trajectory.- Specified by:
getSTTrajectory
in interfaceIInterpolationFactory
- Parameters:
events
- The set of event detections that compose the trajectory- Returns:
- A new ISTInterpolationTrajectory object that contains the passed in detection reports.
-
getAligner
public IShapeSeriesAligner getAligner()
Description copied from interface:ISeriesAlignmentFactory
Method gets a shape aligner object used to find the least cost alignment of points in a series that is treated as though it was a timeseries.- Specified by:
getAligner
in interfaceISeriesAlignmentFactory
- Returns:
- A shape series alignment object.
-
getCostMatrix
public ICostMatrix getCostMatrix(ISearchWindow window)
Description copied from interface:ISeriesAlignmentFactory
Method gets a cost matrix for a search window- Specified by:
getCostMatrix
in interfaceISeriesAlignmentFactory
- Parameters:
window
- The window to get a cost matrix for.- Returns:
- A cost matrix for the input search window
-
getAlignmentPath
public IAlignmentPath getAlignmentPath(int size)
Description copied from interface:ISeriesAlignmentFactory
Method gets an alignment path object of a set size- Specified by:
getAlignmentPath
in interfaceISeriesAlignmentFactory
- Parameters:
size
- The size of of the path to return- Returns:
-
getAlignmentInfo
public IAlignmentInfo getAlignmentInfo(double distance, IAlignmentPath path)
- Specified by:
getAlignmentInfo
in interfaceISeriesAlignmentFactory
-
getTSPoint
public ISeriesPoint getTSPoint(double[] values)
- Specified by:
getTSPoint
in interfaceISeriesAlignmentFactory
-
getTimeSeries
public IShapeSeries getTimeSeries(int nDims)
- Specified by:
getTimeSeries
in interfaceISeriesAlignmentFactory
-
getReducedTimeSeries
public IAggregateShapeSeries getReducedTimeSeries(IShapeSeries series, int reducedSize)
- Specified by:
getReducedTimeSeries
in interfaceISeriesAlignmentFactory
-
getExpandedSearchWindow
public ISearchWindow getExpandedSearchWindow(IShapeSeries tsI, IShapeSeries tsJ, IAggregateShapeSeries shrunkI, IAggregateShapeSeries shrunkJ, IAlignmentPath shrunkWarpPath)
- Specified by:
getExpandedSearchWindow
in interfaceISeriesAlignmentFactory
-
-