RxJava



rx.math.operators
Class OperationAverage

java.lang.Object
  extended by rx.math.operators.OperationAverage

public final class OperationAverage
extends java.lang.Object

A few operators for implementing the averaging operation.

See Also:
MSDN: Observable.Average

Nested Class Summary
static class OperationAverage.AverageDoubleExtractor<T>
          Compute the average by extracting double values from the source via an extractor function.
static class OperationAverage.AverageFloatExtractor<T>
          Compute the average by extracting float values from the source via an extractor function.
static class OperationAverage.AverageIntegerExtractor<T>
          Compute the average by extracting integer values from the source via an extractor function.
static class OperationAverage.AverageLongExtractor<T>
          Compute the average by extracting long values from the source via an extractor function.
 
Constructor Summary
OperationAverage()
           
 
Method Summary
static rx.Observable<java.lang.Integer> average(rx.Observable<java.lang.Integer> source)
           
static rx.Observable<java.lang.Double> averageDoubles(rx.Observable<java.lang.Double> source)
           
static rx.Observable<java.lang.Float> averageFloats(rx.Observable<java.lang.Float> source)
           
static rx.Observable<java.lang.Long> averageLongs(rx.Observable<java.lang.Long> source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationAverage

public OperationAverage()
Method Detail

average

public static rx.Observable<java.lang.Integer> average(rx.Observable<java.lang.Integer> source)

averageLongs

public static rx.Observable<java.lang.Long> averageLongs(rx.Observable<java.lang.Long> source)

averageFloats

public static rx.Observable<java.lang.Float> averageFloats(rx.Observable<java.lang.Float> source)

averageDoubles

public static rx.Observable<java.lang.Double> averageDoubles(rx.Observable<java.lang.Double> source)