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 Type Method Description
    double distance​(Point pt)
    Computes the distance the point is from the model.
    void distances​(List<Point> points, double[] distance)
    Computes the distance a set of points is from the model and saves the results in the provided array.
    Class<Model> getModelType()
    Returns a class for the input point object
    Class<Point> getPointType()
    Returns a class for the input point object
    void setModel​(Model model)
    Sets the model parameters.
  • Method Details

    • setModel

      void setModel​(Model model)
      Sets the model parameters.
      Parameters:
      model - Model parameters.
    • distance

      double distance​(Point pt)
      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

      void distances​(List<Point> points, double[] distance)
      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

      Class<Point> getPointType()
      Returns a class for the input point object
      Returns:
      point class type
    • getModelType

      Class<Model> getModelType()
      Returns a class for the input point object
      Returns:
      model class type