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 TypeMethodDescriptiondouble
derivativeAt
(double dblVal) Evaluate derivative of the model function for the specified value of the indeterminate.double
evaluateAt
(double dblVal) Evaluate the model function for the specified value: (x1 + x2(x0/x-1) + x3/2(x0/x-1)^2 + ... + xn/(n-1)!double
getCoef
(int iOrder) Get the specified coefficient value.Methods inherited from class xal.extension.jels.tools.math.InverseRealPolynomial
getCoefs, getDegree, plus, setCoefArray, times, toString
Methods inherited from class xal.tools.math.fnc.poly.RealUnivariatePolynomial
derivativeAt, main, plus, times
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface xal.tools.math.fnc.IRealFunction
getDomain
-
Constructor Details
-
MeanFieldPolynomial
-
-
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 interfaceIRealFunction
- Overrides:
evaluateAt
in 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: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 interfaceISmoothRealFunction
- Overrides:
derivativeAt
in 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:InverseRealPolynomial
Get the specified coefficient value. If the value ofiOrder
is larger than the size of the coefficient array then the coefficient is assumed to have value zero.- Overrides:
getCoef
in classInverseRealPolynomial
- Parameters:
iOrder
- index of coefficient- Returns:
- coefficient
-