Package smile.math

Interface MultivariateFunction

All Superinterfaces:
Serializable, ToDoubleFunction<double[]>
All Known Subinterfaces:
DifferentiableMultivariateFunction

public interface MultivariateFunction extends ToDoubleFunction<double[]>, Serializable
An interface representing a multivariate real function.
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    apply(double... x)
    Computes the value of the function at x.
    default double
    applyAsDouble(double[] x)
     
    double
    f(double[] x)
    Computes the value of the function at x.
  • Method Details

    • f

      double f(double[] x)
      Computes the value of the function at x.
      Parameters:
      x - a real vector.
      Returns:
      the function value.
    • apply

      default double apply(double... x)
      Computes the value of the function at x. It delegates the computation to f(). This is simply for Scala convenience.
      Parameters:
      x - a real vector.
      Returns:
      the function value.
    • applyAsDouble

      default double applyAsDouble(double[] x)
      Specified by:
      applyAsDouble in interface ToDoubleFunction<double[]>