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

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")

The following tables list the members exposed by the WeightedAverageView type.

Public Properties

  NameDescription
EventType
Provides metadata information about the type of object the event collection contains.
(Overrides .EventType.)
FieldNameWeight
Gets or sets the name of the field supplying the weight values.

FieldNameX
Gets or sets the name of the field supplying the X values.

HasViews
Test is there are any views to the Viewable.
(Inherited from ViewSupport.)
Id
Gets the unique id for the view
(Inherited from ViewSupport.)
Parent
Gets or sets the View's parent Viewable.
(Overrides .Parent.)
ViewServiceContext
Gets or sets the context instances used by the view.