Interface LinearFitterMultiDimensionFunctionEvaluator


public interface LinearFitterMultiDimensionFunctionEvaluator
Interface to evaluate linear multidimensional functions f(x1, x2, ...) = a * f0(x1, x2, ...) + b * f1(x1, x2, ...) + ... 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 (x1, x2, ...), this interface will return an array containing the evaluations of the basis functions at such point f0(x1, x2, ...), f1(x1, x2, ...), ..., fM(x1, x2, ...)
  • 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 multi dimension function at provided point and returns the evaluations of the basis functions at such point
    int
    Number of dimensions of points (i.e.
  • Method Details

    • getNumberOfDimensions

      int getNumberOfDimensions()
      Number of dimensions of points (i.e. length of arrays) evaluated by this function evaluator
      Returns:
      number of dimensions of points
    • 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 multi 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