neutronpy.models.simple_harmonic_oscillator

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

Standard equation for a simple harmonic oscillator

Parameters:
p : list

Parameters, in the following format:

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

One dimensional input array

Returns:
func : ndarray

One dimensional array