Documentation of 'org.ddogleg.example.DistanceFromLine' Java class
DistanceFromLine
org.ddogleg.example

Class DistanceFromLine

    • Constructor Summary

      Constructors 
      Constructor and Description
      DistanceFromLine() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void computeDistance(java.util.List<Point2D> obs, double[] distance)
      There are some situations where processing everything as a list can speed things up a lot.
      double computeDistance(Point2D p)
      Computes the distance the point is from the model.
      void setModel(Line2D param)
      Sets the model parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DistanceFromLine

        public DistanceFromLine()
    • Method Detail

      • computeDistance

        public double computeDistance(Point2D p)
        Description copied from interface: DistanceFromModel
        Computes the distance the point is from the model.
        Specified by:
        computeDistance in interface DistanceFromModel<Line2D,Point2D>
        Parameters:
        p - Point being evaluated. Not modified.
        Returns:
        Distance the point is from the model.
      • computeDistance

        public void computeDistance(java.util.List<Point2D> obs,
                                    double[] distance)
        There are some situations where processing everything as a list can speed things up a lot. This is not one of them.
        Specified by:
        computeDistance in interface DistanceFromModel<Line2D,Point2D>
        Parameters:
        obs - Set of points which are to be evaluated.
        distance - Where model distance is stored.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.