@ParametersAreNonnullByDefault
Package com.google.common.math
Arithmetic functions operating on primitive values and
BigInteger
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.BigDecimalMath.BigDecimalToDoubleRounder BigIntegerMath A class for arithmetic on values of typeBigInteger
.BigIntegerMath.BigIntegerToDoubleRounder DoubleMath A class for arithmetic on doubles that is not covered byMath
.DoubleUtils Utilities fordouble
primitives.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.LinearTransformation.NaNLinearTransformation LinearTransformation.RegularLinearTransformation LinearTransformation.VerticalLinearTransformation LongMath A class for arithmetic on values of typelong
.MathPreconditions A collection of preconditions for math functions.PairedStats An immutable value object capturing some basic statistics about a collection of paired double values (e.g.PairedStatsAccumulator A mutable object which accumulates paired double values (e.g.Quantiles Provides a fluent API for calculating quantiles.Quantiles.Scale Describes the point in a fluent API chain where only the scale (i.e.Quantiles.ScaleAndIndex Describes the point in a fluent API chain where the scale and a single quantile index (i.e.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.ToDoubleRounder<X extends java.lang.Number & java.lang.Comparable<X>> Helper type to implement roundingX
to a representabledouble
value according to aRoundingMode
. -
Enum Summary Enum Description LongMath.MillerRabinTester -
Annotation Types Summary Annotation Type Description ElementTypesAreNonnullByDefault Marks all "top-level" types as non-null in a way that is recognized by Kotlin.ParametricNullness Marks a "top-level" type-variable usage as (a) a Kotlin platform type when the type argument is non-nullable and (b) nullable when the type argument is nullable.