Package xal.extension.jels.tools.math
Class MeanFieldPolynomial
java.lang.Object
xal.tools.math.fnc.poly.RealUnivariatePolynomial
xal.extension.jels.tools.math.InverseRealPolynomial
xal.extension.jels.tools.math.MeanFieldPolynomial
- All Implemented Interfaces:
IRealFunction,ISmoothRealFunction
- Author:
- Ivo List, Juan F. Esteban Müller <juanf.estebanmuller@esss.se>
-
Constructor Summary
ConstructorsConstructorDescriptionMeanFieldPolynomial(InverseRealPolynomial ttf, InverseRealPolynomial ttfPrime) -
Method Summary
Modifier and TypeMethodDescriptiondoublederivativeAt(double dblVal) Evaluate derivative of the model function for the specified value of the indeterminate.doubleevaluateAt(double dblVal) Evaluate the model function for the specified value: (x1 + x2(x0/x-1) + x3/2(x0/x-1)^2 + ... + xn/(n-1)!doublegetCoef(int iOrder) Get the specified coefficient value.Methods inherited from class xal.extension.jels.tools.math.InverseRealPolynomial
getCoefs, getDegree, plus, setCoefArray, times, toStringMethods inherited from class xal.tools.math.fnc.poly.RealUnivariatePolynomial
derivativeAt, main, plus, timesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface xal.tools.math.fnc.IRealFunction
getDomain
-
Constructor Details
-
MeanFieldPolynomial
-
-
Method Details
-
evaluateAt
public double evaluateAt(double dblVal) Description copied from class:InverseRealPolynomialEvaluate 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:
evaluateAtin interfaceIRealFunction- Overrides:
evaluateAtin classInverseRealPolynomial- 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:InverseRealPolynomialEvaluate 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:
derivativeAtin interfaceISmoothRealFunction- Overrides:
derivativeAtin classInverseRealPolynomial- 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:InverseRealPolynomialGet the specified coefficient value. If the value ofiOrderis larger than the size of the coefficient array then the coefficient is assumed to have value zero.- Overrides:
getCoefin classInverseRealPolynomial- Parameters:
iOrder- index of coefficient- Returns:
- coefficient
-