public class HarmonicOscillator extends Object implements UnivariateDifferentiableFunction
| Modifier and Type | Class and Description | 
|---|---|
| static class  | HarmonicOscillator.ParametricParametric 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 | 
|---|---|
| DerivativeStructure | value(DerivativeStructure t)Simple mathematical 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 UnivariateFunctionx - Point at which the function value should be computed.public DerivativeStructure value(DerivativeStructure t) throws MathIllegalArgumentException
UnivariateDifferentiableFunction classes compute both the
 value and the first derivative of the function.
value in interface UnivariateDifferentiableFunctiont - function input valueMathIllegalArgumentException - if t is inconsistent with the
 function's free parameters or orderCopyright © 2016–2020 Hipparchus.org. All rights reserved.