Class Reference
%ZEN.Report.Aggregate.LinearRegression
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%ZEN] >  [Report] >  [Aggregate] >  [LinearRegression]
Private  Storage

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
5 2


Summary

Properties
Count SumOfX SumOfXSquared SumOfXY SumOfY
accumIf class escape excelFormula excelName
expression field fields format name
type uniqueId

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject GetResult GetResultList ProcessValue
XMLDTD XMLExport XMLExportToStream XMLExportToString
XMLNew XMLSchema XMLSchemaNamespace XMLSchemaType
fieldIsValid nameIsValid

Subclasses
%ZEN.Report.Aggregate.LinRegIntercept %ZEN.Report.Aggregate.LinRegSlope %ZEN.Report.Aggregate.LinRegWithStorage

Properties

• 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 ];

Methods

• 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