nearestNeighbour
public java.util.Map<PositionInformation,java.lang.Double> nearestNeighbour(CachingManager cachingManager,
java.util.Map<java.lang.String,SignalInformation> fingerPrint,
java.util.List<PositionInformation> persistedPositions)
Adds the current signla data to the caching manager.
Calculates the distance between the current signal data and the persisted position information with the Euclidean algorithm
Access points which are not in the current signal data, but in the persisted data will be ignored. So the positions will not be removed.
- Overrides:
nearestNeighbour
in class Matcher
- Parameters:
cachingManager
- caching manager of the technologyfingerPrint
- current signal datapersistedPositions
- persisted position information
- Returns:
- map with the position information and a value that indicates how far away the position is. The lower the value the closer the position.