public class PositionEstimate extends Object
Constructor and Description |
---|
PositionEstimate(Point2d location,
double residualError)
Creates a new instance of
PositionEstimate . |
Modifier and Type | Method and Description |
---|---|
static double |
calculateResidualError(Point2d[] anchors,
double[] ranges,
double[] weights,
Point2d e)
Calculate residual error which is the sum of the squared residuals
to each anchor node.
|
static double |
calculateResidualError(Point2d[] anchors,
double[] ranges,
Point2d e)
Calculate residual error which is the sum of the squared residuals
to each anchor node.
|
Point2d |
getLocation()
Get the estimated position of the node.
|
double |
getResidualError()
Get the residual error associated with the estimated position.
|
void |
setResidualError(double residualError)
Set the residual error associated with the estimated position.
|
public PositionEstimate(Point2d location, double residualError)
PositionEstimate
.location
- The estimated position of the node being localized.residualError
- The residual error.public Point2d getLocation()
public double getResidualError()
public void setResidualError(double residualError)
residualError
- The new residual error.public static double calculateResidualError(Point2d[] anchors, double[] ranges, Point2d e)
anchors
- The anchor nodes.ranges
- The measured distances.e
- The estimated location of the mobile node.public static double calculateResidualError(Point2d[] anchors, double[] ranges, double[] weights, Point2d e)
anchors
- The anchor nodes.ranges
- The measured distances.weights
- The anchor weights.e
- The estimated location of the mobile node.Copyright © 2012 Thomas Hillebrandt. All Rights Reserved.