public class RegressionLinestView extends BaseBivariateStatisticsView implements CloneableView
BaseStatisticsBean
instance for the calculations, it also returns this bean as the result.
This class accepts most of its behaviour from its parent, BaseBivariateStatisticsView
. It adds
the usage of the regression bean and the appropriate schema.EMPTY_VIEW_ARRAY
Constructor and Description |
---|
RegressionLinestView(AgentInstanceContext agentInstanceContext,
ExprNode xFieldName,
ExprNode yFieldName,
EventType eventType,
StatViewAdditionalProps additionalProps)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
View |
cloneView()
Duplicates the view.
|
static EventBean |
doPopulateMap(BaseStatisticsBean baseStatisticsBean,
EventAdapterService eventAdapterService,
EventType eventType,
StatViewAdditionalProps additionalProps,
java.lang.Object[] decoration) |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
EventBean |
populateMap(BaseStatisticsBean baseStatisticsBean,
EventAdapterService eventAdapterService,
EventType eventType,
StatViewAdditionalProps additionalProps,
java.lang.Object[] decoration)
Populate bean.
|
java.lang.String |
toString() |
getAdditionalProps, getExpressionX, getExpressionY, getLastValuesEventNew, getStatisticsBean, iterator, setLastValuesEventNew, update
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addView, getViews, hasViews, removeAllViews, removeView
public RegressionLinestView(AgentInstanceContext agentInstanceContext, ExprNode xFieldName, ExprNode yFieldName, EventType eventType, StatViewAdditionalProps additionalProps)
xFieldName
- is the field name of the field providing X data pointsyFieldName
- is the field name of the field providing X data pointsagentInstanceContext
- contains required view servicespublic View cloneView()
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
public EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public java.lang.String toString()
toString
in class java.lang.Object
public EventBean populateMap(BaseStatisticsBean baseStatisticsBean, EventAdapterService eventAdapterService, EventType eventType, StatViewAdditionalProps additionalProps, java.lang.Object[] decoration)
BaseBivariateStatisticsView
baseStatisticsBean
- resultseventAdapterService
- event adapterseventType
- typeadditionalProps
- additional propsdecoration
- decoration valuespublic static EventBean doPopulateMap(BaseStatisticsBean baseStatisticsBean, EventAdapterService eventAdapterService, EventType eventType, StatViewAdditionalProps additionalProps, java.lang.Object[] decoration)