Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%ZEN] >  [Report] >  [Aggregate] >  [LinearRegression]
Private  Storage   

deprecatedclass %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 excelNumberFormat expression
field fields filter format
ignoreNLS name postprocessResult preprocessValue
runtimeMode type uniqueId

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%PostProcessValue %PreProcessValue %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


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.