Documentation of 'org.ddogleg.fitting.modelset.distance.DistanceFromMeanModel' Java class
DistanceFromMeanModel
org.ddogleg.fitting.modelset.distance

Class DistanceFromMeanModel

  • All Implemented Interfaces:
    DistanceFromModel<double[],java.lang.Double>


    public class DistanceFromMeanModel
    extends java.lang.Object
    implements DistanceFromModel<double[],java.lang.Double>
    Computes the absolute distance from the mean a point is.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double computeDistance(java.lang.Double pt)
      Computes the distance the point is from the model.
      void computeDistance(java.util.List<java.lang.Double> points, double[] distance)
      Computes the distance a set of points is from the model and saves the results in the provided array.
      void setModel(double[] param)
      Sets the model parameters.
      • Methods inherited from class java.lang.Object

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

      • DistanceFromMeanModel

        public DistanceFromMeanModel()
    • Method Detail

      • setModel

        public void setModel(double[] param)
        Description copied from interface: DistanceFromModel
        Sets the model parameters.
        Specified by:
        setModel in interface DistanceFromModel<double[],java.lang.Double>
        Parameters:
        param - Model parameters.
      • computeDistance

        public double computeDistance(java.lang.Double pt)
        Description copied from interface: DistanceFromModel
        Computes the distance the point is from the model.
        Specified by:
        computeDistance in interface DistanceFromModel<double[],java.lang.Double>
        Parameters:
        pt - Point being evaluated. Not modified.
        Returns:
        Distance the point is from the model.
      • computeDistance

        public void computeDistance(java.util.List<java.lang.Double> points,
                                    double[] distance)
        Description copied from interface: DistanceFromModel
        Computes the distance a set of points is from the model and saves the results in the provided array.
        Specified by:
        computeDistance in interface DistanceFromModel<double[],java.lang.Double>
        Parameters:
        points - 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.