Package org.hipparchus.analysis
Interface FieldUnivariateFunction
-
- All Known Implementing Classes:
PolynomialFunction
,PolynomialFunctionNewtonForm
,PolynomialSplineFunction
public interface FieldUnivariateFunction
An interface representing a univariate real function for any field type.This interface is more general than
RealFieldUnivariateFunction
because the same instance can accept any field type, not just one.- Since:
- 1.3
- See Also:
UnivariateFunction
,RealFieldUnivariateFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends RealFieldElement<T>>
RealFieldUnivariateFunction<T>toRealFieldUnivariateFunction(Field<T> field)
Convert to aRealFieldUnivariateFunction
with a specific type.<T extends RealFieldElement<T>>
Tvalue(T x)
Compute the value of the function.
-
-
-
Method Detail
-
toRealFieldUnivariateFunction
default <T extends RealFieldElement<T>> RealFieldUnivariateFunction<T> toRealFieldUnivariateFunction(Field<T> field)
Convert to aRealFieldUnivariateFunction
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 RealFieldElement<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.
-
-