public class Matcher
extends java.lang.Object
Constructor and Description |
---|
Matcher() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.Map<PositionInformation,java.lang.Double> |
nearestNeighbour(CachingManager cachingManager,
java.util.Map<java.lang.String,SignalInformation> fingerPrint,
java.util.List<PositionInformation> persistedPositions,
boolean ignoreDisabledAPs)
Calculates the distance between the current signal data and the persisted position information with the Euclidean algorithm.
|
public java.util.Map<PositionInformation,java.lang.Double> nearestNeighbour(CachingManager cachingManager, java.util.Map<java.lang.String,SignalInformation> fingerPrint, java.util.List<PositionInformation> persistedPositions)
cachingManager
- caching manager of the technologyfingerPrint
- current signal datapersistedPositions
- persisted position informationpublic java.util.Map<PositionInformation,java.lang.Double> nearestNeighbour(CachingManager cachingManager, java.util.Map<java.lang.String,SignalInformation> fingerPrint, java.util.List<PositionInformation> persistedPositions, boolean ignoreDisabledAPs)
cachingManager
- caching manager of the technologyfingerPrint
- current signal datapersistedPositions
- persisted position informationignoreDisabledAPs
- indicates if access points which are not in the current signal data, but in the persisted data should be ignored
or not. true, if they should be ignored so that positions will be removed, else they will not be ignored.