public interface FieldUnivariateFunction
This interface is more general than RealFieldUnivariateFunction
because
the same instance can accept any field type, not just one.
UnivariateFunction
,
RealFieldUnivariateFunction
Modifier and Type | Method and Description |
---|---|
default <T extends RealFieldElement<T>> |
toRealFieldUnivariateFunction(Field<T> field)
Convert to a
RealFieldUnivariateFunction with a specific type. |
<T extends RealFieldElement<T>> |
value(T x)
Compute the value of the function.
|
default <T extends RealFieldElement<T>> RealFieldUnivariateFunction<T> toRealFieldUnivariateFunction(Field<T> field)
RealFieldUnivariateFunction
with a specific type.T
- the type of the field elementsfield
- field for the argument and value<T extends RealFieldElement<T>> T value(T x)
T
- the type of the field elementsx
- Point at which the function value should be computed.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 an IllegalArgumentException
, it is
usually the consequence of checking the actual parameters passed to
the method.Copyright © 2016–2019 Hipparchus.org. All rights reserved.