Observable

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

Computes the average of an observable sequence of nullable Int64 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 Long)) _
) As IObservable(Of Nullable(Of Double))
'Usage
Dim source As IObservable(Of Nullable(Of Long))
Dim returnValue As IObservable(Of Nullable(Of Double))

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

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Nullable<Int64>>. 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

Observable.Average Method (IObservable<Double>)

Computes the average of an observable sequence of Double values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Double>
The average of an observable sequence of Double values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Double>. 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

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

Observable.Average Method (IObservable<Single>)

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

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 .

See Also

Reference

Observable Class

Average Overload

System.Reactive.Linq Namespace

Observable.Average Method

Include Protected Members
Include Inherited Members

Computes the average of an observable sequence.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

NameDescriptionPublic methodStatic memberAverage(IObservable)Computes the average of an observable sequence of Decimal values.Public methodStatic memberAverage(IObservable)Computes the average of an observable sequence of Double values.Public methodStatic memberAverage(IObservable)Computes the average of an observable sequence of Int32 values.Public methodStatic memberAverage(IObservable)Computes the average of an observable sequence of Int64 values.Public methodStatic memberAverage(IObservable<Nullable>)Computes the average of an observable sequence of nullable Decimal values.Public methodStatic memberAverage(IObservable<Nullable>)Computes the average of an observable sequence of nullable Double values.Public methodStatic memberAverage(IObservable<Nullable>)Computes the average of an observable sequence of nullable Int32 values.Public methodStatic memberAverage(IObservable<Nullable>)Computes the average of an observable sequence of nullable Int64 values.Public methodStatic memberAverage(IObservable<Nullable>)Computes the average of an observable sequence of nullable Float values.Public methodStatic memberAverage(IObservable)Computes the average of an observable sequence of Float values.Top

See Also

Reference

Observable Class

System.Reactive.Linq Namespace

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

Computes the average of an observable sequence of nullable Int32 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 Integer)) _
) As IObservable(Of Nullable(Of Double))
'Usage
Dim source As IObservable(Of Nullable(Of Integer))
Dim returnValue As IObservable(Of Nullable(Of Double))

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

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Nullable<Int32>>. 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

Observable.Average Method (IObservable<Decimal>)

Computes the average of an observable sequence of Decimal values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Decimal>
The average of an observable sequence of Decimal values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Decimal>. 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

Observable.Average Method (IObservable<Int64>)

Computes the average of an observable sequence of Int64 values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Double>
The average of an observable sequence of Int64 values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Int64>. 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

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

Computes the average of an observable sequence of nullable Double 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 Double)) _
) As IObservable(Of Nullable(Of Double))
'Usage
Dim source As IObservable(Of Nullable(Of Double))
Dim returnValue As IObservable(Of Nullable(Of Double))

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

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Nullable<Double>>. 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

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

Computes the average of an observable sequence of nullable Decimal 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 Decimal)) _
) As IObservable(Of Nullable(Of Decimal))
'Usage
Dim source As IObservable(Of Nullable(Of Decimal))
Dim returnValue As IObservable(Of Nullable(Of Decimal))

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

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Nullable<Decimal>>. 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

Observable.Average Method (IObservable<Int32>)

Computes the average of an observable sequence of Int32 values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Double>
The average of an observable sequence of Int32 values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Int32>. 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