dotnetCHARTING Send comments on this topic.
LeastSquaresEstimateY(String,Series) Method
See Also 
dotnetCHARTING Namespace > StatisticalEngine Class > LeastSquaresEstimateY Method : LeastSquaresEstimateY(String,Series) Method


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A statistical series.
Constructs the regression line of Y on X using the method of least squares.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function LeastSquaresEstimateY( _
   ByVal seriesName As String, _
   ByVal s As Series _
) As Series
Visual Basic (Usage) Copy Code
Dim seriesName As String
Dim s As Series
Dim value As Series
 
value = StatisticalEngine.LeastSquaresEstimateY(seriesName, s)
C#  
public static Series LeastSquaresEstimateY( 
   string seriesName,
   Series s
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A statistical series.

Remarks

That is, the regression line using the least squares method is constructed when the second element of the pairs from which the data set of constructed is plot against the first elements of the pairs.

See Also