Class HomogeneousLinearLeastSquaresLaterationSolver<P extends com.irurueta.geometry.Point<?>>
java.lang.Object
com.irurueta.navigation.lateration.LaterationSolver<P>
com.irurueta.navigation.lateration.HomogeneousLinearLeastSquaresLaterationSolver<P>
- Direct Known Subclasses:
HomogeneousLinearLeastSquaresLateration2DSolver
,HomogeneousLinearLeastSquaresLateration3DSolver
public abstract class HomogeneousLinearLeastSquaresLaterationSolver<P extends com.irurueta.geometry.Point<?>>
extends LaterationSolver<P>
Linearly solves the lateration problem using an homogeneous LMSE solution.
-
Field Summary
Fields inherited from class com.irurueta.navigation.lateration.LaterationSolver
distances, EPSILON, estimatedPositionCoordinates, listener, locked, positions
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor.protected
Constructor.protected
HomogeneousLinearLeastSquaresLaterationSolver
(P[] positions, double[] distances) Constructor.protected
HomogeneousLinearLeastSquaresLaterationSolver
(P[] positions, double[] distances, LaterationSolverListener<P> listener) Constructor. -
Method Summary
Methods inherited from class com.irurueta.navigation.lateration.LaterationSolver
getDistances, getEstimatedPosition, getEstimatedPosition, getEstimatedPositionCoordinates, getListener, getMinRequiredPositionsAndDistances, getNumberOfDimensions, getPositions, internalSetPositionsAndDistances, isLocked, isReady, setListener, setPositionsAndDistances
-
Constructor Details
-
HomogeneousLinearLeastSquaresLaterationSolver
protected HomogeneousLinearLeastSquaresLaterationSolver()Constructor. -
HomogeneousLinearLeastSquaresLaterationSolver
Constructor.- Parameters:
positions
- known positions of static nodes.distances
- euclidean distances from static nodes to mobile node.- Throws:
IllegalArgumentException
- if either positions or distances are null, don't have the same length or their length is smaller than required points.
-
-
Method Details
-
solve
Solves the lateration problem.- Specified by:
solve
in classLaterationSolver<P extends com.irurueta.geometry.Point<?>>
- Throws:
LaterationException
- if lateration fails.NotReadyException
- if solver is not ready.LockedException
- if instance is busy solving the lateration problem.
-
getType
Gets lateration solver type.- Specified by:
getType
in classLaterationSolver<P extends com.irurueta.geometry.Point<?>>
- Returns:
- lateration solver type.
-