Interface LinearFitterSingleDimensionFunctionEvaluator


public interface LinearFitterSingleDimensionFunctionEvaluator
Interface to evaluate linear single dimensional functions f(x) = a * f0(x) + b * f1(x) + ... Where the linear function is composed of a linear combination of a basis of functions f0, f1, ... fM For each evaluation at a given point x, this interface will return an array containing the evaluations of the basis functions at such point f0(x), f1(x), ..., fM(x)
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Creates array where basis function results will be stored
    void
    evaluate(double point, double[] result)
    Evaluates a linear single dimension function at provided point and returns the evaluations of the basis functions at such point
  • Method Details

    • createResultArray

      double[] createResultArray()
      Creates array where basis function results will be stored
      Returns:
      array where basis function results will be stored
    • evaluate

      void evaluate(double point, double[] result) throws EvaluationException
      Evaluates a linear single dimension function at provided point and returns the evaluations of the basis functions at such point
      Parameters:
      point - point where function will be evaluated
      result - array where result of evaluation of basis functions is stored
      Throws:
      EvaluationException - raised if something failed during the evaluation