dotnetCHARTING Send comments on this topic.
TrendLine(String,Series,Series,Int32) Method
See Also 
dotnetCHARTING Namespace > ForecastEngine Class > TrendLine Method : TrendLine(String,Series,Series,Int32) Method


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A statistical series.
deviations
A series wich contains the standard deviations of the given data point.
mwt
When this parameter is 0 the standard deviation will not be considered.
Given a set of data points x[0..ndata-1],y[0..ndata-1] with individual standard deviations sig[0..ndata-1], fit them to a straight line y = a + bx by minimizing ¥ö2. Returned are a,b and their respective probable uncertainties siga and sigb, the chi-square chi2, and the goodness-of-fit probability q (that the fit would have ¥ö2 this large or larger). If mwt=0 on input, then the standard deviations are assumed to be unavailable: q is returned as 1.0 and the normalization of chi2 is to unit standard deviation on all points.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function TrendLine( _
   ByVal seriesName As String, _
   ByVal s As Series, _
   ByVal deviations As Series, _
   ByVal mwt As Integer _
) As Series
Visual Basic (Usage)Copy Code
Dim seriesName As String
Dim s As Series
Dim deviations As Series
Dim mwt As Integer
Dim value As Series
 
value = ForecastEngine.TrendLine(seriesName, s, deviations, mwt)
C# 
public static Series TrendLine( 
   string seriesName,
   Series s,
   Series deviations,
   int mwt
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A statistical series.
deviations
A series wich contains the standard deviations of the given data point.
mwt
When this parameter is 0 the standard deviation will not be considered.

See Also

© 2010 All Rights Reserved.