public class HarmonicOscillator extends Object implements UnivariateDifferentiableFunction
| 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 |
|---|---|
double |
value(double x)
Compute the value of the function.
|
<T extends Derivative<T>> |
value(T t)
Compute the value for 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 <T extends Derivative<T>> T value(T t) throws MathIllegalArgumentException
value in interface UnivariateDifferentiableFunctionT - the type of the field elementst - the point for which the function value should be computedMathIllegalArgumentException - if x does not
satisfy the function's constraints (argument out of bound, or unsupported
derivative order for example)Copyright © 2016-2022 CS GROUP. All rights reserved.