Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Computes the average of an observable sequence of Float values.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Average ( _
source As IObservable(Of Single) _
) As IObservable(Of Single)
'Usage
Dim source As IObservable(Of Single)
Dim returnValue As IObservable(Of Single)
returnValue = source.Average()
public static IObservable<float> Average(
this IObservable<float> source
)
[ExtensionAttribute]
public:
static IObservable<float>^ Average(
IObservable<float>^ source
)
static member Average :
source:IObservable<float32> -> IObservable<float32>
public static function Average(
source : IObservable<float>
) : IObservable<float>
Parameters
- source
Type: System.IObservable<Single>
A sequence of Float values to calculate the average of.
Return Value
Type: System.IObservable<Single>
The average of an observable sequence of Float values.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Single>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .