%DeepSee.UI.Analysis.Regression
Class %DeepSee.UI.Analysis.Regression Extends %DeepSee.UI.Analysis.AbstractAnalysis [ CompileAfter = (%ZEN.Generator, %ZEN.SVGComponent.xyFitChart), System = 4 ]
This dialog displays various regression analysis of the values behind a cell within a pivot.
Parameters
APPLYBUTTON
Parameter APPLYBUTTON = 0;
Properties
measureNameX
Property measureNameX As %ZEN.Datatype.string(ZENURL = "MEASURE");
Measure to use for analysis.
measureNameY
Property measureNameY As %ZEN.Datatype.string(ZENURL = "MEASURE");
Measure to use for analysis.
valuesX
Property valuesX As list Of %ZEN.Datatype.float;
Array of X values to plot.
valuesY
Property valuesY As list Of %ZEN.Datatype.float;
Array of Y values to plot.
XMin
Property XMin As %ZEN.Datatype.float;
XMax
Property XMax As %ZEN.Datatype.float;
YMin
Property YMin As %ZEN.Datatype.float;
YMax
Property YMax As %ZEN.Datatype.float;
R
Property R As %ZEN.Datatype.float;
Regression values
Slope
Property Slope As %ZEN.Datatype.float;
SlopeErr
Property SlopeErr As %ZEN.Datatype.float;
Intercept
Property Intercept As %ZEN.Datatype.float;
InterceptErr
Property InterceptErr As %ZEN.Datatype.float;
Fit
Property Fit As %ZEN.Datatype.string;
XDatas
Style
XData Style
dialogBody
XData dialogBody [ XMLNamespace = "http://www.intersystems.com/zen" ]
Contents of the dialog body.
Methods
%GetAnalysisInfo
ClassMethod %GetAnalysisInfo(Output pInfo) As %Status
%OnGetTitle
Method %OnGetTitle() As %String
Get the (localized) title string for the dialog. This should be implemented in a subclass.
%OnGetSubtitle
Method %OnGetSubtitle() As %String
Get the (localized) subtitle string for the dialog. This should be implemented in a subclass.
getDialogValue
ClientMethod getDialogValue() [ Language = javascript ]
ondialogFinish
ClientMethod ondialogFinish(action) As %Boolean [ Language = javascript ]
This callback, if defined, is called when the user presses the OK or Apply action buttons. If this returns false, then the action is cancelled.
ondialogStart
ClientMethod ondialogStart() [ Language = javascript ]
This callback, if defined, is called when the dialog page is loaded.
measureChange
ClientMethod measureChange() [ Language = javascript ]
Change in measureX value.
fitChange
ClientMethod fitChange() [ Language = javascript ]
%OnAfterCreatePage
Method %OnAfterCreatePage() As %Status
%UpdateControls
Method %UpdateControls(pCount As %Integer, pNullCount As %Integer, pMinValue As %Double, pMaxValue As %Double)
Update value of controls.
UpdateConfidence
Method UpdateConfidence() As %Status [ ZenMethod ]
%UpdateEquation
Method %UpdateEquation() As %Status
%ComputeChartValues
Method %ComputeChartValues()
Compute chart valuesX.
UpdateValues
Method UpdateValues() As %String [ ZenMethod ]
Recompute chart values.
%ComputeValues
Method %ComputeValues(Output pCount As %Integer, Output pNullCount As %Integer, Output pMinValue As %Double, Output pMaxValue As %Double) As %Status
Execute query and get raw list of valuesX in temp global.
confidenceChange
ClientMethod confidenceChange() [ Language = javascript ]
adjustSize
ClientMethod adjustSize() [ Language = javascript ]
Adjust size and position of components on this page.
getChartData
ClientMethod getChartData(series) [ Language = javascript ]
Callback to provide data for the chart.
getLineData
ClientMethod getLineData() [ Language = javascript ]
getXLabel
ClientMethod getXLabel(val) [ Language = javascript ]
Callback to provide x label for the chart.
updateMeasureSelect
ClientMethod updateMeasureSelect() [ Language = javascript ]
Update state of the measureX select control
%ComputeRegression
Method %ComputeRegression() As %Status
%GetPair
Method %GetPair(i As %Integer, Output x As %Float, Output y As %Float) As %Status
%Round
ClassMethod %Round(x As %Float) As %Float