|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.esper.view.ViewSupport
net.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 StatementContext |
statementContext
Services required by implementing classes. |
protected BaseStatisticsBean |
statisticsBean
This bean can be overridden by subclasses providing extra values such as correlation, regression. |
| Fields inherited from class net.esper.view.ViewSupport |
|---|
parent |
| Constructor Summary | |
|---|---|
BaseBivariateStatisticsView(StatementContext statementContext,
BaseStatisticsBean statisticsBean,
String fieldNameX,
String fieldNameY)
Constructor requires the name of the two fields to use in the parent view to compute the statistics. |
|
| Method Summary | |
|---|---|
String |
getFieldNameX()
Returns the field name of the field supplying X data points. |
String |
getFieldNameY()
Returns the field name of the field supplying Y data points. |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object. |
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent. |
| Methods inherited from class net.esper.view.ViewSupport |
|---|
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, updateChildren, updateChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BaseStatisticsBean statisticsBean
protected StatementContext statementContext
| Constructor Detail |
|---|
public BaseBivariateStatisticsView(StatementContext statementContext,
BaseStatisticsBean statisticsBean,
String fieldNameX,
String fieldNameY)
statisticsBean - is the base class prodiving sum of X and Y and squares for use by subclassesfieldNameX - is the name of the field within the parent view to get the X values fromfieldNameY - is the name of the field within the parent view to get the Y values fromstatementContext - contains required view services| Method Detail |
|---|
public final void setParent(Viewable parent)
View
setParent in interface ViewsetParent in class ViewSupportparent - is the parent that this view is a child of
public void update(EventBean[] newData,
EventBean[] oldData)
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 Iterator<EventBean> iterator()
EventCollection
public final String getFieldNameX()
public final String getFieldNameY()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||