public static final java.math.BigDecimal LOCATION_DIFF_KILOMETER
Distance between related events in space, in kilometers.
public static final java.math.BigDecimal KILOMETERS_PER_DEGREE
Number of kilometers in a degree at the equator.
public static final java.math.BigDecimal LOCATION_DIFF_DEGREES
Distance between related events latitude, in degrees.
This is based on the max number of kilometers per degree, and provides
the maximum latitude separation (assuming events share a longitude).
Used as a pre-filter before more expensive checks.
For the given list of events, find the one that is "closest" to the given
product. Similarity is calculated by first subtracting the event
parameter from the product parameter, normalizing between 1 and -1, then
calculating the Euclidean distance in the 3D space composed of the
normalized lat, lon, and time vectors.
Event with lowest distance
public boolean eventsAssociated(Event event1,
Check if two events are associated to each other.
Reasons events may be considered disassociated:
Share a common EVENTSOURCE with different EVENTSOURCECODE.
Either has a disassociate product for the other.
Preferred location in space and time is NOT nearby, and no other
reason to associate.
Reasons events may be considered associated:
Share a common EVENTID
Either has an associate product for the other.
Their preferred location in space and time is nearby.