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 Details

    • toCalculusFieldUnivariateFunction

      default <T extends CalculusFieldElement<T>> CalculusFieldUnivariateFunction<T> toCalculusFieldUnivariateFunction(Field<T> field)
      Convert to a CalculusFieldUnivariateFunction 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 an IllegalArgumentException, it is usually the consequence of checking the actual parameters passed to the method.