[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Classes

  ClassDescription
public classBaseBivariateStatisticsView
View for computing statistics that require 2 input variable arrays containing X and Y datapoints. Subclasses compute correlation or regression values, for instance.

public classBaseStatisticsBean
Bean for performing statistical calculations. The bean keeps sums of X and Y datapoints and sums on squares that can be reused by subclasses. The bean calculates standard deviation (sample and population), variance, average and sum.

public classCorrelationBean
Bean for calculating the correlation (same to Microsoft Excel CORREL function).

public classCorrelationView
A view that calculates correlation on two fields. The view uses internally a net.esper.view.stat.CorrelationBean instance for the calculations, it also returns this bean as the result. This class accepts most of its behaviour from its parent, net.esper.view.stat.BaseBivariateStatisticsView. It adds the usage of the correlation bean and the appropriate schema.

public classMultiDimStatsView
This view compiles OLAP cubes for the specified fields. New data from the parent view is entered into one or more fact cubes (see MultidimCube). Old data from the parent view is removed from a fact cube. The dimensions of the fact cube are specified as parameters to the view. The fact cube can be one-dimensional, two-dimensional (tabular) or 3-dimenstional (tabular with pages). Parameters are: A mandatory array of derived measure names, such as "count", "stddev" etc., (see ViewFieldEnum) A mandatory measure field name. This field supplies the fact values in the cells of the cube. A mandatory column field name. This field supplies the members of dimension zero (column, 1-dim). An optional row field name. This field supplies the members of dimension one (row, 2-dim). An optional page field name. This field supplies the members of dimension two (page, 3-dim). The view post new data to child views that contains a Map with the Cube (see Cube). It does not post old data.

public classRegressionBean
Bean for calculating the regression slope and y intercept (same to Microsoft Excel LINEST function).

public classRegressionLinestView
A view that calculates regression on two fields. The view uses internally a net.esper.view.stat.RegressionBean instance for the calculations, it also returns this bean as the result. This class accepts most of its behaviour from its parent, net.esper.view.stat.BaseBivariateStatisticsView. It adds the usage of the regression bean and the appropriate schema.

public classUnivariateStatisticsView
View for computing statistics, which the view exposes via fields representing the sum, count, standard deviation for sample and for population and variance.

public classWeightedAverageView
View for computing a weighted average. The view uses 2 fields within the parent view to compute the weighted average. The X field and weight field. In a price-volume example it calculates the volume-weighted average price as (sum(price * volume) / sum(volume)). Example: weighted_avg("price", "volume")