Package smile.math

Interface Function

All Superinterfaces:
Serializable
All Known Subinterfaces:
DifferentiableFunction, DotProductKernel, IsotropicKernel, RadialBasisFunction, Variogram
All Known Implementing Classes:
BinarySparseGaussianKernel, BinarySparseHyperbolicTangentKernel, BinarySparseLaplacianKernel, BinarySparseLinearKernel, BinarySparseMaternKernel, BinarySparsePolynomialKernel, BinarySparseThinPlateSplineKernel, Exp, ExponentialVariogram, Gaussian, GaussianKernel, GaussianRadialBasis, GaussianVariogram, HyperbolicTangent, HyperbolicTangentKernel, InverseMultiquadricRadialBasis, Kurtosis, Laplacian, LaplacianKernel, LinearKernel, LogCosh, Matern, MaternKernel, MultiquadricRadialBasis, Polynomial, PolynomialKernel, PowerVariogram, Scaler, SparseGaussianKernel, SparseHyperbolicTangentKernel, SparseLaplacianKernel, SparseLinearKernel, SparseMaternKernel, SparsePolynomialKernel, SparseThinPlateSplineKernel, SphericalVariogram, ThinPlateRadialBasis, ThinPlateSpline, ThinPlateSplineKernel

public interface Function extends Serializable
An interface representing a univariate real function.
  • Method Summary

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

    • f

      double f(double x)
      Computes the value of the function at x.
      Parameters:
      x - a real number.
      Returns:
      the function value.
    • inv

      default double inv(double x)
      Computes the value of the inverse function at x.
      Parameters:
      x - a real number.
      Returns:
      the inverse 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 number.
      Returns:
      the function value.