Documentation of 'org.ddogleg.fitting.modelset.MeanModelFitter' Java class
MeanModelFitter
org.ddogleg.fitting.modelset

Class MeanModelFitter

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


    public class MeanModelFitter
    extends java.lang.Object
    implements ModelFitter<double[],java.lang.Double>, ModelGenerator<double[],java.lang.Double>
    Computes the mean of a set of points.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MeanModelFitter() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean fitModel(java.util.List<java.lang.Double> dataSet, double[] initParam, double[] foundParam)
      Fits a model to a set of points.
      boolean generate(java.util.List<java.lang.Double> dataSet, double[] param)
      Creates a list of hypotheses from the set of sample points.
      int getMinimumPoints()
      The minimum number of points required to fit a data set
      • Methods inherited from class java.lang.Object

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

      • MeanModelFitter

        public MeanModelFitter()
    • Method Detail

      • generate

        public boolean generate(java.util.List<java.lang.Double> dataSet,
                                double[] param)
        Description copied from interface: ModelGenerator
        Creates a list of hypotheses from the set of sample points.
        Specified by:
        generate in interface ModelGenerator<double[],java.lang.Double>
        Parameters:
        dataSet - Set of sample points. Typically the minimum number possible.
        param - Storage for generated model.
        Returns:
        true if a model was generated, otherwise false is none were
      • fitModel

        public boolean fitModel(java.util.List<java.lang.Double> dataSet,
                                double[] initParam,
                                double[] foundParam)
        Description copied from interface: ModelFitter
        Fits a model to a set of points. Note that initial and found can be the same instance.
        Specified by:
        fitModel in interface ModelFitter<double[],java.lang.Double>
        Parameters:
        dataSet - Set of points the model is being fit to.
        initParam - Initial hypothesis
        foundParam - The found model. Can be the same instance as initial.
        Returns:
        true if a model was found and false if one was not.
      • getMinimumPoints

        public int getMinimumPoints()
        Description copied from interface: ModelGenerator
        The minimum number of points required to fit a data set
        Specified by:
        getMinimumPoints in interface ModelGenerator<double[],java.lang.Double>
        Returns:
        Number of points.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.