Share via


Observable.Average Method (IObservable<Nullable<Single>>)

Computes the average of an observable sequence of nullable Float values.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Average ( _
    source As IObservable(Of Nullable(Of Single)) _
) As IObservable(Of Nullable(Of Single))
'Usage
Dim source As IObservable(Of Nullable(Of Single))
Dim returnValue As IObservable(Of Nullable(Of Single))

returnValue = source.Average()
public static IObservable<Nullable<float>> Average(
    this IObservable<Nullable<float>> source
)
[ExtensionAttribute]
public:
static IObservable<Nullable<float>>^ Average(
    IObservable<Nullable<float>>^ source
)
static member Average : 
        source:IObservable<Nullable<float32>> -> IObservable<Nullable<float32>> 
public static function Average(
    source : IObservable<Nullable<float>>
) : IObservable<Nullable<float>>

Parameters

Return Value

Type: System.IObservable<Nullable<Single>>
The average of an observable sequence of nullable Float values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Nullable<Single>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

Average Overload

System.Reactive.Linq Namespace