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:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <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 Details
-
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
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.
-