All Implemented Interfaces:
Function<Vector,Double>, RealScalarFunction, UnivariateRealFunction

public class Gaussian extends AbstractUnivariateRealFunction
The Gaussian function is defined as: \[ f(x) = a e^{- { \frac{(x-b)^2 }{ 2 c^2} } } \]
See Also:
  • Constructor Details

    • Gaussian

      public Gaussian(double a, double b, double c)
      Construct an instance of the Gaussian function.
      Parameters:
      a - a
      b - b
      c - c
    • Gaussian

      public Gaussian()
      Construct an instance of the standard Gaussian function: \(f(x) = e^{-{\frac{(x)^2}{2}}}\)
  • Method Details

    • a

      public double a()
      Get a.
      Returns:
      a
    • b

      public double b()
      Get b.
      Returns:
      b
    • c

      public double c()
      Get c.
      Returns:
      c
    • evaluate

      public double evaluate(double x)
      Description copied from interface: UnivariateRealFunction
      Evaluate y = f(x).
      Parameters:
      x - x
      Returns:
      f(x)