Package org.hipparchus.analysis
Interface FieldUnivariateFunction
-
- All Known Implementing Classes:
PolynomialFunction
,PolynomialFunctionNewtonForm
,PolynomialSplineFunction
,SmoothStepFactory.QuadraticSmoothStepFunction
,SmoothStepFactory.SmoothStepFunction
public interface FieldUnivariateFunction
An interface representing a univariate real function for any field type.This interface is more general than
CalculusFieldUnivariateFunction
because the same instance can accept any field type, not just one.- Since:
- 1.3
- See Also:
UnivariateFunction
,CalculusFieldUnivariateFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends CalculusFieldElement<T>>
CalculusFieldUnivariateFunction<T>toCalculusFieldUnivariateFunction(Field<T> field)
Convert to aCalculusFieldUnivariateFunction
with a specific type.<T extends CalculusFieldElement<T>>
Tvalue(T x)
Compute the value of the function.
-
-
-
Method Detail
-
toCalculusFieldUnivariateFunction
default <T extends CalculusFieldElement<T>> CalculusFieldUnivariateFunction<T> toCalculusFieldUnivariateFunction(Field<T> field)
Convert to aCalculusFieldUnivariateFunction
with a specific type.- Type Parameters:
T
- the type of the field elements- Parameters:
field
- field for the argument and value- Returns:
- converted function
-
value
<T extends CalculusFieldElement<T>> T value(T x)
Compute the value of the function.- Type Parameters:
T
- the type of the field elements- Parameters:
x
- Point at which the function value should be computed.- Returns:
- the value of the function.
- Throws:
IllegalArgumentException
- when the activated method itself can ascertain that a precondition, specified in the API expressed at the level of the activated method, has been violated. When Hipparchus throws anIllegalArgumentException
, it is usually the consequence of checking the actual parameters passed to the method.
-
-