Amplitude of sinusoidal functions from graph