|
WaveFitSineFit Method
|
Uses least squares linear regression to calculate the best fit sine wave for the given data.
Namespace: GSF.NumericalAnalysisAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+ff392465a0262ee2737937d4127fc3c2f08c6dcd
Syntaxpublic static SineWave SineFit(
double[] yValues,
double[] tValues,
double frequency
)
Public Shared Function SineFit (
yValues As Double(),
tValues As Double(),
frequency As Double
) As SineWave
public:
static SineWave SineFit(
array<double>^ yValues,
array<double>^ tValues,
double frequency
)
static member SineFit :
yValues : float[] *
tValues : float[] *
frequency : float -> SineWave
GSF.NumericalAnalysis.WaveFit.SineFit = function(yValues, tValues, frequency);
View SourceParameters
- 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
SineWaveA
SineWave approximated from the given data points.
See Also