@CheckReturnValue @NullMarked
Package com.google.common.math
Arithmetic functions operating on primitive values and on
BigInteger
and BigDecimal
instances.
This package is a part of the open-source Guava library.
See the Guava User Guide article on math utilities.
-
Class Summary Class Description BigDecimalMath A class for arithmetic onBigDecimal
that is not covered by its built-in methods.BigIntegerMath A class for arithmetic on values of typeBigInteger
.DoubleMath A class for arithmetic on doubles that is not covered byMath
.IntMath A class for arithmetic on values of typeint
.LinearTransformation The representation of a linear transformation between real numbersx
andy
.LinearTransformation.LinearTransformationBuilder This is an intermediate stage in the construction process.LongMath A class for arithmetic on values of typelong
.PairedStats An immutable value object capturing some basic statistics about a collection of paired double values (e.g. points on a plane).PairedStatsAccumulator A mutable object which accumulates paired double values (e.g. points on a plane) and tracks some basic statistics over all the values added so far.Quantiles Provides a fluent API for calculating quantiles.Quantiles.Scale Describes the point in a fluent API chain where only the scale (i.e. the q in q-quantiles) has been specified.Quantiles.ScaleAndIndex Describes the point in a fluent API chain where the scale and a single quantile index (i.e. the q and the k in the kth q-quantile) have been specified.Quantiles.ScaleAndIndexes Describes the point in a fluent API chain where the scale and a multiple quantile indexes (i.e.Stats A bundle of statistical summary values -- sum, count, mean/average, min and max, and several forms of variance -- that were computed from a single set of zero or more floating-point values.StatsAccumulator A mutable object which accumulates double values and tracks some basic statistics over all the values added so far.