Class MeanFieldPolynomial

All Implemented Interfaces:
IRealFunction, ISmoothRealFunction

public class MeanFieldPolynomial extends InverseRealPolynomial
Author:
Ivo List, Juan F. Esteban Müller <juanf.estebanmuller@esss.se>
  • Constructor Details

  • Method Details

    • evaluateAt

      public double evaluateAt(double dblVal)
      Description copied from class: InverseRealPolynomial
      Evaluate the model function for the specified value: (x1 + x2(x0/x-1) + x3/2(x0/x-1)^2 + ... + xn/(n-1)!(x0/x-1)^(n-1)) / x1 where x0,x1,...,xn are coefficients.
      Specified by:
      evaluateAt in interface IRealFunction
      Overrides:
      evaluateAt in class InverseRealPolynomial
      Parameters:
      dblVal - indeterminate value to evaluate the model function at
      Returns:
      the value of the function at the given location
    • derivativeAt

      public double derivativeAt(double dblVal)
      Description copied from class: InverseRealPolynomial
      Evaluate derivative of the model function for the specified value of the indeterminate. If the coefficient vector has not been specified, it return 0. (-x2(x0 x^-2) - x3(x0/x-1)(x0 x^-2) - ... - xn/(n-2)!(x0/x-1)^(n-2)(x0 x^-2)) / x1 where x0,x1,...,xn are coefficients.
      Specified by:
      derivativeAt in interface ISmoothRealFunction
      Overrides:
      derivativeAt in class InverseRealPolynomial
      Parameters:
      dblVal - indeterminate value to evaluate the model function derivative
      Returns:
      the derivative f'(x) of the function f
    • getCoef

      public double getCoef(int iOrder)
      Description copied from class: InverseRealPolynomial
      Get the specified coefficient value. If the value of iOrder is larger than the size of the coefficient array then the coefficient is assumed to have value zero.
      Overrides:
      getCoef in class InverseRealPolynomial
      Parameters:
      iOrder - index of coefficient
      Returns:
      coefficient