WaveFitSineFit Method

Uses least squares linear regression to calculate the best fit sine wave for the given data.

Definition

Namespace: Gemstone.Numeric.Analysis
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.167 -- Release Build+9e631c9f4ed4cd2c2da47045792d813c2de0c4a8
public static SineWave SineFit(
	double[] yValues,
	double[] tValues,
	double frequency
)

Parameters

yValues  Double
The y values of the data points.
tValues  Double
The time values of the data points, in seconds.
frequency  Double
The frequency of the sine wave, in Hz.

Return Value

SineWave
A SineWave approximated from the given data points.

See Also