class %ZEN.Report.Aggregate.LinearRegression
extends %ZEN.Report.CustomAggregate
Calculate linear regression information about X,Y data set return as %List
Base class for MDX Linear Regression Functions
property Count
as %Integer [ InitialExpression = 0 ];
Keeps a running count of values processed
property SumOfX
as %Double [ InitialExpression = 0 ];
Keeps a running total of the sum of the squares of the processed items
property SumOfXSquared
as %Double [ InitialExpression = 0 ];
property SumOfXY
as %Double [ InitialExpression = 0 ];
property SumOfY
as %Double [ InitialExpression = 0 ];
method GetResultList()
as %String
Returns $LB(a,b) where y = a * x + b
Returns null if denominator will be zero
method ProcessValue(pValue As %List)
as %Status
Processes each new value (x,y) pair in %List