Class TemporalAligner

  • All Implemented Interfaces:
    ITemporalAligner

    public class TemporalAligner
    extends Object
    implements ITemporalAligner
    Performs minor adjustments to the timestamp of a spatiotemporal event report to align with an epoch and step size in interpolation methods described in Boubrahimi et. al, 2018.
    Author:
    Dustin Kempton, Data Mining Lab, Georgia State University
    • Constructor Detail

      • TemporalAligner

        public TemporalAligner​(IInterpolationFactory factory,
                               org.joda.time.DateTime epoch,
                               org.joda.time.Duration step,
                               RoundingStrategy strategy)
        Constructor that provides an epoch that is used to align the timestamp of each event report in passed in trajectories against. The alignment forces the timestamps to be an integer multiple number of steps from the input epoch time. The rounding strategy is also provided, it can be UP, DOWN, or ROUND. Where UP always takes the timestamp to the next closest integer multiple, down always takes the timestamp to the previous, and ROUND takes it to the closest integer multiple.
        Parameters:
        factory - The factory used to create new objects to return
        epoch - The epoch time to align against
        step - The step to use to force the timestamps to be an integer multiple of
        strategy - The rounding strategy