Package com.irurueta.navigation.indoor
Class RadioSourceNoMeanKNearestFinder<P extends com.irurueta.geometry.Point<?>,S extends RadioSource>
java.lang.Object
com.irurueta.navigation.indoor.RadioSourceNoMeanKNearestFinder<P,S>
- Type Parameters:
P- aPointtype.S- atype.
public class RadioSourceNoMeanKNearestFinder<P extends com.irurueta.geometry.Point<?>,S extends RadioSource>
extends Object
Finds k-nearest radio source fingerprints based on their signal Euclidean distances
(not their actual location) where mean values are removed to account for possible
biases when measuring from different devices.
Typically, this class should be preferred over
RadioSourceKNearestFinder.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<? extends RssiFingerprintLocated<S, RssiReading<S>, P>> Collection of fingerprints to match against. -
Constructor Summary
ConstructorsConstructorDescriptionRadioSourceNoMeanKNearestFinder(Collection<? extends RssiFingerprintLocated<S, RssiReading<S>, P>> fingerprints) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfindKNearestTo(RssiFingerprint<S, RssiReading<S>> fingerprint, int k) Finds k-nearest fingerprints to provided one, in terms of signal Euclidean distances (with removed signal means), within the collection of provided fingerprints.voidfindKNearestTo(RssiFingerprint<S, RssiReading<S>> fingerprint, int k, List<RssiFingerprintLocated<S, RssiReading<S>, P>> nearestFingerprints, List<Double> nearestSqrDistances) Finds k-nearest fingerprints to provided one, in terms of signal Euclidean distances (with removed signal means), within the collection of provided fingerprints.static <P extends com.irurueta.geometry.Point<?>,S extends RadioSource>
List<RssiFingerprintLocated<S, RssiReading<S>, P>> findKNearestTo(RssiFingerprint<S, RssiReading<S>> fingerprint, Collection<? extends RssiFingerprintLocated<S, RssiReading<S>, P>> fingerprints, int k) Finds k-nearest fingerprints to provided one, in terms of signal Euclidean distances, within the collection of provided fingerprints.static <P extends com.irurueta.geometry.Point<?>,S extends RadioSource>
voidfindKNearestTo(RssiFingerprint<S, RssiReading<S>> fingerprint, Collection<? extends RssiFingerprintLocated<S, RssiReading<S>, P>> fingerprints, int k, List<RssiFingerprintLocated<S, RssiReading<S>, P>> nearestFingerprints, List<Double> nearestSqrDistances) Finds k-nearest fingerprints to provided one, in terms of signal Euclidean distances, within the collection of provided fingerprints.findNearestTo(RssiFingerprint<S, RssiReading<S>> fingerprint) Finds nearest fingerprint to provided one, in terms of signal Euclidean distances (with removed signal means), within the collection of provided fingerprints.static <P extends com.irurueta.geometry.Point<?>,S extends RadioSource>
RssiFingerprintLocated<S, RssiReading<S>, P> findNearestTo(RssiFingerprint<S, RssiReading<S>> fingerprint, Collection<? extends RssiFingerprintLocated<S, RssiReading<S>, P>> fingerprints) Finds nearest fingerprint to provided one, in terms of signal Euclidean distances (with removed signal means), within the collection of provided fingerprints.Gets collection of fingerprints to match against.
-
Field Details
-
mFingerprints
private final Collection<? extends RssiFingerprintLocated<S extends RadioSource,RssiReading<S extends RadioSource>, mFingerprintsP extends com.irurueta.geometry.Point<?>>> Collection of fingerprints to match against.
-
-
Constructor Details
-
RadioSourceNoMeanKNearestFinder
public RadioSourceNoMeanKNearestFinder(Collection<? extends RssiFingerprintLocated<S, RssiReading<S>, P>> fingerprints) Constructor.- Parameters:
fingerprints- collection of fingerprints to match against.- Throws:
IllegalArgumentException- if collection of fingerprints is null.
-
-
Method Details
-
getFingerprints
Gets collection of fingerprints to match against.- Returns:
- collection of fingerprints to match against.