neutronpy.models.damped_harmonic_oscillator

neutronpy.models.damped_harmonic_oscillator(p, t)[source]

Standard equation for a damped harmonic oscillator

Parameters:
p : list

Parameters, in the following format:

p[0] Constant background
p[1] Amplitude
p[2] Period
p[3] Phase
p[4] Damping strength
t : ndarray

One dimensional input array

Returns:
func : ndarray

One dimensional array