Package | Description |
---|---|
com.google.common.math |
Arithmetic functions operating on primitive values and
BigInteger instances. |
Modifier and Type | Method and Description |
---|---|
static Stats |
Stats.fromByteArray(byte[] byteArray)
Creates a Stats instance from the given byte representation which was obtained by
toByteArray() . |
static Stats |
Stats.of(double... values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(java.util.stream.DoubleStream values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(int... values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(java.util.stream.IntStream values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(java.lang.Iterable<? extends java.lang.Number> values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(java.util.Iterator<? extends java.lang.Number> values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(long... values)
Returns statistics over a dataset containing the given values.
|
static Stats |
Stats.of(java.util.stream.LongStream values)
Returns statistics over a dataset containing the given values.
|
Stats |
StatsAccumulator.snapshot()
Returns an immutable snapshot of the current statistics.
|
Stats |
PairedStats.xStats()
Returns the statistics on the
x values alone. |
Stats |
PairedStatsAccumulator.xStats()
Returns an immutable snapshot of the statistics on the
x values alone. |
Stats |
PairedStats.yStats()
Returns the statistics on the
y values alone. |
Stats |
PairedStatsAccumulator.yStats()
Returns an immutable snapshot of the statistics on the
y values alone. |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Collector<java.lang.Number,StatsAccumulator,Stats> |
Stats.toStats()
Returns a
Collector which accumulates statistics from a Stream
of any type of boxed Number into a Stats . |
Modifier and Type | Method and Description |
---|---|
void |
StatsAccumulator.addAll(Stats values)
Adds the given statistics to the dataset, as if the individual values used to compute the
statistics had been added directly.
|
Copyright © 2010–2021 JBoss by Red Hat. All rights reserved.