X
on Y
using the method of least squares.
Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function LeastSquaresEstimateX( _ ByVal seriesName As String, _ ByVal s As Series _ ) As Series |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static Series LeastSquaresEstimateX( 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.
That is, the regression line using the least squares method is constructed when the
first element of the pairs from which the data set of constructed is plot against the second
elements of the pairs.