Click or drag to resize

WaveFitSineFit Method

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

Namespace: GSF.NumericalAnalysis
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
public static SineWave SineFit(
	double[] yValues,
	double[] tValues,
	double frequency
)
View Source

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