Observable.Average メソッド (IObservable<Int32>)
Int32 値の観測可能なシーケンスの平均を計算します。
Namespace:System.Reactive.Linq
アセンブリ: System.Reactive (System.Reactive.dll)
構文
'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>
パラメーター
- source
種類: System.IObservable<Int32>
の平均を計算する Int32 値のシーケンス。
戻り値
種類: System.IObservable<Double>
Int32 値の観測可能なシーケンスの平均。
使用上の注意
Visual Basic と C# では、 IObservable<Int32> 型の任意のオブジェクトでインスタンス メソッドとしてこのメソッドを呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。