Class LocationProbCalc

  • All Implemented Interfaces:
    ISTLocationProbCal

    public class LocationProbCalc
    extends Object
    implements ISTLocationProbCal
    This class is used to calculate the probability of an event at the given location being either the start of a track or the end of a track(enter prob/exit prob). Which one is dependent upon the file it uses as input.
    Author:
    Dustin Kempton, Data Mining Lab, Georgia State University Michael Tinglof, Data Mining Lab, Georgia State University
    • Constructor Detail

      • LocationProbCalc

        public LocationProbCalc​(String fileLoc,
                                int regionDiv)
        Constructor
        Parameters:
        fileLoc - The location of the input file to open and read for data.
        regionDiv - The divisor to make the dimensions of the input event match that of the input file.
    • Method Detail

      • calcProb

        public double calcProb​(ISpatialTemporalObj ev)
        Description copied from interface: ISTLocationProbCal
        Returns the probability of seeing an IEvent at the given location.
        Specified by:
        calcProb in interface ISTLocationProbCal
        Parameters:
        ev - The IEvent to calculate the probability for.
        Returns:
        A probability value 0-1 that indicates the liklihood of seeing an event at the passed in location.