Package org.ddogleg.fitting.modelset
Interface DistanceFromModel<Model,Point>
public interface DistanceFromModel<Model,Point>
Computes the distance a sample point is from the provided model.
Example: If the model is a rigid body transformation then there are 6 model parameters, 3 for rotation and 3 for translation. The sample point is the initial location of a point in 3D space before the transform has been applied and the observed location after the transform has been applied.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes the distance the point is from the model.void
Computes the distance a set of points is from the model and saves the results in the provided array.Returns a class for the input point objectReturns a class for the input point objectvoid
Sets the model parameters.
-
Method Details
-
setModel
Sets the model parameters.- Parameters:
model
- Model parameters.
-
distance
Computes the distance the point is from the model.- Parameters:
pt
- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
distances
Computes the distance a set of points is from the model and saves the results in the provided array.- Parameters:
points
- Set of points which are to be evaluated.distance
- Where model distance is stored.
-
getPointType
Returns a class for the input point object- Returns:
- point class type
-
getModelType
Returns a class for the input point object- Returns:
- model class type
-