|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.ViewSupport
com.espertech.esper.view.stat.BaseBivariateStatisticsView
public abstract class BaseBivariateStatisticsView
View for computing statistics that require 2 input variable arrays containing X and Y datapoints. Subclasses compute correlation or regression values, for instance.
Field Summary | |
---|---|
protected StatViewAdditionalProps |
additionalProps
Additional properties. |
protected AgentInstanceContext |
agentInstanceContext
Services required by implementing classes. |
protected EventType |
eventType
Event type. |
protected java.lang.Object[] |
lastValuesEventNew
|
protected BaseStatisticsBean |
statisticsBean
This bean can be overridden by subclasses providing extra values such as correlation, regression. |
protected ViewFactory |
viewFactory
|
Fields inherited from class com.espertech.esper.view.ViewSupport |
---|
EMPTY_VIEW_ARRAY, parent |
Constructor Summary | |
---|---|
BaseBivariateStatisticsView(ViewFactory viewFactory,
AgentInstanceContext agentInstanceContext,
ExprNode expressionX,
ExprNode expressionY,
EventType eventType,
StatViewAdditionalProps additionalProps)
Constructor requires the name of the two fields to use in the parent view to compute the statistics. |
Method Summary | |
---|---|
StatViewAdditionalProps |
getAdditionalProps()
|
ExprNode |
getExpressionX()
Returns the expression supplying X data points. |
ExprNode |
getExpressionY()
Returns the expression supplying Y data points. |
java.lang.Object[] |
getLastValuesEventNew()
|
BaseStatisticsBean |
getStatisticsBean()
|
ViewFactory |
getViewFactory()
|
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
protected abstract EventBean |
populateMap(BaseStatisticsBean baseStatisticsBean,
EventAdapterService eventAdapterService,
EventType eventType,
StatViewAdditionalProps additionalProps,
java.lang.Object[] decoration)
Populate bean. |
void |
setLastValuesEventNew(java.lang.Object[] lastValuesEventNew)
|
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent. |
Methods inherited from class com.espertech.esper.view.ViewSupport |
---|
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.view.View |
---|
getParent, setParent |
Methods inherited from interface com.espertech.esper.view.Viewable |
---|
addView, getViews, hasViews, removeAllViews, removeView |
Methods inherited from interface com.espertech.esper.view.EventCollection |
---|
getEventType |
Field Detail |
---|
protected final ViewFactory viewFactory
protected BaseStatisticsBean statisticsBean
protected final AgentInstanceContext agentInstanceContext
protected final StatViewAdditionalProps additionalProps
protected final EventType eventType
protected java.lang.Object[] lastValuesEventNew
Constructor Detail |
---|
public BaseBivariateStatisticsView(ViewFactory viewFactory, AgentInstanceContext agentInstanceContext, ExprNode expressionX, ExprNode expressionY, EventType eventType, StatViewAdditionalProps additionalProps)
expressionX
- is the expression to get the X values fromexpressionY
- is the expression to get the Y values fromagentInstanceContext
- contains required view serviceseventType
- type of eventadditionalProps
- additional propsMethod Detail |
---|
protected abstract EventBean populateMap(BaseStatisticsBean baseStatisticsBean, EventAdapterService eventAdapterService, EventType eventType, StatViewAdditionalProps additionalProps, java.lang.Object[] decoration)
baseStatisticsBean
- resultseventAdapterService
- event adapterseventType
- typeadditionalProps
- additional propsdecoration
- decoration values
public void update(EventBean[] newData, EventBean[] oldData)
View
update
in interface View
newData
- is the new data that has been added to the parent viewoldData
- is the old data that has been removed from the parent viewpublic final java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface java.lang.Iterable<EventBean>
public final ExprNode getExpressionX()
public final ExprNode getExpressionY()
public BaseStatisticsBean getStatisticsBean()
public java.lang.Object[] getLastValuesEventNew()
public void setLastValuesEventNew(java.lang.Object[] lastValuesEventNew)
public StatViewAdditionalProps getAdditionalProps()
public ViewFactory getViewFactory()
getViewFactory
in interface GroupableView
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |