public class HarmonicOscillator extends Object implements DifferentiableUnivariateFunction
Modifier and Type | Class and Description |
---|---|
static class |
HarmonicOscillator.Parametric
Parametric function where the input array contains the parameters of
the harmonic oscillator function, ordered as follows:
Amplitude
Angular frequency
Phase
|
Constructor and Description |
---|
HarmonicOscillator(double amplitude,
double omega,
double phase)
Harmonic oscillator function.
|
Modifier and Type | Method and Description |
---|---|
UnivariateFunction |
derivative()
Returns the derivative of the function
|
double |
value(double x)
Compute the value of the function.
|
public HarmonicOscillator(double amplitude, double omega, double phase)
amplitude
- Amplitude.omega
- Angular frequency.phase
- Phase.public double value(double x)
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.public UnivariateFunction derivative()
derivative
in interface DifferentiableUnivariateFunction
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.