C# Class GSF.NumericalAnalysis.WaveFit

Linear regression algorithm for sine waves.
ファイルを表示 Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
SineFit ( double yValues, double tValues, double frequency ) : SineWave

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

Method Details

SineFit() public static method

Uses least squares linear regression to calculate the best fit sine wave for the given data.
public static SineFit ( double yValues, double tValues, double frequency ) : SineWave
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 SineWave