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.171 -- Release Build+20915b5e5c2b832e94890ea4187a61c474a2582a
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