RegressionTransform Class

Replaces the rows of each series (the Series channel, else the colors) with the points of a polynomial fitted to them by least squares (Regression), across the range of their x values: a trend line when used with a LineMark<T>. The tooltip of each line is its equation. A series with too few points is not drawn.

public sealed class RegressionTransform : Transform
Inheritance
Transform RegressionTransform

Constructors

NameDescription
RegressionTransform()

RegressionTransform()

RegressionTransform.cs
public RegressionTransform()

No documentation is available.

Properties

NameDescription
DegreeGets or sets the degree of the polynomial: 1 for a straight line (the default), 2 for a parabola. From 0 to 10.
SamplesGets or sets the number of points of each curve. A straight line has 2. The default is 50.

Gets or sets the degree of the polynomial: 1 for a straight line (the default), 2 for a parabola. From 0 to 10.

public int Degree { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 10.

Gets or sets the number of points of each curve. A straight line has 2. The default is 50.

public int Samples { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is less than 2.