[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: NEsper (in NEsper.dll)
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")
Namespace: net.esper.view.stat
Assembly: NEsper (in NEsper.dll)
Syntax
Visual Basic (Declaration) |
---|
Public NotInheritable Class WeightedAverageView _ Inherits ViewSupport _ Implements ContextAwareView |
C# |
---|
public sealed class WeightedAverageView : ViewSupport, ContextAwareView |
Visual C++ |
---|
public ref class WeightedAverageView sealed : public ViewSupport, ContextAwareView |