Package edu.gsu.cs.dmlab.tracking
Class LocationProbCalc
- java.lang.Object
-
- edu.gsu.cs.dmlab.tracking.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 Summary
Constructors Constructor Description LocationProbCalc(String fileLoc, int regionDiv)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calcProb(ISpatialTemporalObj ev)
Returns the probability of seeing an IEvent at the given location.void
finalize()
-
-
-
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
-
finalize
public void finalize() throws Throwable
-
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 interfaceISTLocationProbCal
- 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.
-
-