public class MathObservable<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Double> |
averageDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Doubles by using a
function you provide and then emits the Double average of the complete sequence of transformed values.
|
static rx.Observable<java.lang.Double> |
averageDouble(rx.Observable<java.lang.Double> source)
Returns an Observable that emits the average of the Doubles emitted by the source Observable.
|
rx.Observable<java.lang.Float> |
averageFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Floats by using a
function you provide and then emits the Float average of the complete sequence of transformed values.
|
static rx.Observable<java.lang.Float> |
averageFloat(rx.Observable<java.lang.Float> source)
Returns an Observable that emits the average of the Floats emitted by the source Observable.
|
rx.Observable<java.lang.Integer> |
averageInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Integers by using a
function you provide and then emits the Integer average of the complete sequence of transformed values.
|
static rx.Observable<java.lang.Integer> |
averageInteger(rx.Observable<java.lang.Integer> source)
Returns an Observable that emits the average of the Integers emitted by the source Observable.
|
rx.Observable<java.lang.Long> |
averageLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Longs by using a
function you provide and then emits the Long average of the complete sequence of transformed values.
|
static rx.Observable<java.lang.Long> |
averageLong(rx.Observable<java.lang.Long> source)
Returns an Observable that emits the average of the Longs emitted by the source Observable.
|
static <T> MathObservable<T> |
from(rx.Observable<T> o) |
rx.Observable<T> |
max(java.util.Comparator<? super T> comparator)
Returns an Observable that emits the maximum item emitted by the source Observable, according to the
specified comparator.
|
static <T extends java.lang.Comparable<? super T>> |
max(rx.Observable<T> source)
Returns an Observable that emits the single item emitted by the source Observable with the maximum
numeric value.
|
rx.Observable<T> |
min(java.util.Comparator<? super T> comparator)
Returns an Observable that emits the minimum item emitted by the source Observable, according to a
specified comparator.
|
static <T extends java.lang.Comparable<? super T>> |
min(rx.Observable<T> source)
Returns an Observable that emits the single numerically minimum item emitted by the source Observable.
|
rx.Observable<java.lang.Double> |
sumDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)
Returns an Observable that extracts a Double from each of the items emitted by the source Observable via
a function you specify, and then emits the sum of these Doubles.
|
static rx.Observable<java.lang.Double> |
sumDouble(rx.Observable<java.lang.Double> source)
Returns an Observable that emits the sum of all the Doubles emitted by the source Observable.
|
rx.Observable<java.lang.Float> |
sumFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)
Returns an Observable that extracts a Float from each of the items emitted by the source Observable via
a function you specify, and then emits the sum of these Floats.
|
static rx.Observable<java.lang.Float> |
sumFloat(rx.Observable<java.lang.Float> source)
Returns an Observable that emits the sum of all the Floats emitted by the source Observable.
|
rx.Observable<java.lang.Integer> |
sumInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)
Returns an Observable that extracts an Integer from each of the items emitted by the source Observable
via a function you specify, and then emits the sum of these Integers.
|
static rx.Observable<java.lang.Integer> |
sumInteger(rx.Observable<java.lang.Integer> source)
Returns an Observable that emits the sum of all the Integers emitted by the source Observable.
|
rx.Observable<java.lang.Long> |
sumLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)
Returns an Observable that extracts a Long from each of the items emitted by the source Observable via a
function you specify, and then emits the sum of these Longs.
|
static rx.Observable<java.lang.Long> |
sumLong(rx.Observable<java.lang.Long> source)
Returns an Observable that emits the sum of all the Longs emitted by the source Observable.
|
public static <T> MathObservable<T> from(rx.Observable<T> o)
public static final rx.Observable<java.lang.Double> averageDouble(rx.Observable<java.lang.Double> source)

source - source Observable to compute the average ofpublic static final rx.Observable<java.lang.Float> averageFloat(rx.Observable<java.lang.Float> source)

source - source Observable to compute the average ofpublic static final rx.Observable<java.lang.Integer> averageInteger(rx.Observable<java.lang.Integer> source)

source - source Observable to compute the average ofjava.lang.IllegalArgumentException - if the source Observable emits no itemspublic static final rx.Observable<java.lang.Long> averageLong(rx.Observable<java.lang.Long> source)

source - source Observable to compute the average ofpublic static final <T extends java.lang.Comparable<? super T>> rx.Observable<T> max(rx.Observable<T> source)

source - an Observable to scan for the maximum emitted itemjava.lang.IllegalArgumentException - if the source is emptypublic static final <T extends java.lang.Comparable<? super T>> rx.Observable<T> min(rx.Observable<T> source)

source - an Observable to determine the minimum item ofjava.lang.IllegalArgumentException - if the source is emptypublic static final rx.Observable<java.lang.Double> sumDouble(rx.Observable<java.lang.Double> source)

source - the source Observable to compute the sum ofpublic static final rx.Observable<java.lang.Float> sumFloat(rx.Observable<java.lang.Float> source)

source - the source Observable to compute the sum ofpublic static final rx.Observable<java.lang.Integer> sumInteger(rx.Observable<java.lang.Integer> source)

source - source Observable to compute the sum ofpublic static final rx.Observable<java.lang.Long> sumLong(rx.Observable<java.lang.Long> source)

source - source Observable to compute the sum ofpublic final rx.Observable<java.lang.Double> averageDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)

valueExtractor - the function to transform an item emitted by the source Observable into a Doublepublic final rx.Observable<java.lang.Float> averageFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)

valueExtractor - the function to transform an item emitted by the source Observable into a Floatpublic final rx.Observable<java.lang.Integer> averageInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)

valueExtractor - the function to transform an item emitted by the source Observable into an Integerpublic final rx.Observable<java.lang.Long> averageLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)

valueExtractor - the function to transform an item emitted by the source Observable into a Longpublic final rx.Observable<T> max(java.util.Comparator<? super T> comparator)

comparator - the comparer used to compare itemsjava.lang.IllegalArgumentException - if the source is emptypublic final rx.Observable<T> min(java.util.Comparator<? super T> comparator)

comparator - the comparer used to compare elementsjava.lang.IllegalArgumentException - if the source is emptypublic final rx.Observable<java.lang.Double> sumDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)

valueExtractor - the function to extract a Double from each item emitted by the source Observablepublic final rx.Observable<java.lang.Float> sumFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)

valueExtractor - the function to extract a Float from each item emitted by the source Observablepublic final rx.Observable<java.lang.Integer> sumInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)

valueExtractor - the function to extract an Integer from each item emitted by the source Observablepublic final rx.Observable<java.lang.Long> sumLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)

valueExtractor - the function to extract a Long from each item emitted by the source Observable