Class HarmonicOscillator

    • Constructor Detail

      • HarmonicOscillator

        public HarmonicOscillator​(double amplitude,
                                  double omega,
                                  double phase)
        Harmonic oscillator function.
        Parameters:
        amplitude - Amplitude.
        omega - Angular frequency.
        phase - Phase.
    • Method Detail

      • value

        public double value​(double x)
        Compute the value of the function.
        Specified by:
        value in interface UnivariateFunction
        Parameters:
        x - Point at which the function value should be computed.
        Returns:
        the value of the function.