Click or drag to resize

QuickLinearRegression Class

Class for doing a quick and dirty regression of order 1 only returning intercept and slope. Can not handle too big or too input values.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.RegressionQuickLinearRegression

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class QuickLinearRegression

The QuickLinearRegression type exposes the following members.

Constructors
 NameDescription
Public methodQuickLinearRegressionInitializes a new instance of the QuickLinearRegression class
Top
Properties
 NameDescription
Public propertyMeanX 
Public propertyMeanY 
Public propertyN Returns the number of entries added.
Public propertyPearsonCorrelationCoefficient 
Top
Methods
 NameDescription
Public methodAdd Adds a data point to the regression.
Public methodAddRange Adds data points to the statistics.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetA0 Gets the intercept value of the linear regression. Returns NaN if not enough data points entered.
Public methodGetA1 Gets the slope value of the linear regression. Returns NaN if not enough data points entered.
Public methodGetDeterminant Returns the determinant of regression. If zero, not enough data points have been entered.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetX0 Gets the intercept of the linear regression with the X-axis. Returns NaN if not enough data points entered.
Public methodGetYOfX Gets the y value for a given x value. Note that in every call of this function the coefficients a0 and a1 are calculated again. For repeated calls, better use GetYOfXFunction, but note that this function represents the state of the regression at the time of this call.
Public methodGetYOfXFunction Returns a function to calculate y in dependence of x. Please note note that the returned function represents the state of the regression at the time of the call, i.e. subsequent additions of data does not change the function.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also