Top Description Annotations Classes
[default module]

Package com.google.common.math

Annotations
@ParametersAreNonnullByDefault
@CheckReturnValue
Imports
com.google.errorprone.annotations.CheckReturnValue, javax.annotation.ParametersAreNonnullByDefault

Arithmetic functions operating on primitive values and on java.math.BigInteger and java.math.BigDecimal instances.

This package is a part of the open-source Guava library.

See the Guava User Guide article on math utilities.

Annotation Summary

Modifier and TypeAnnotation and Description
pack-priv @interface
ElementTypesAreNonnullByDefault

Marks all "top-level" types as non-null in a way that is recognized by Kotlin.

pack-priv @interface
ParametricNullness

Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.

Class Summary

Modifier and TypeClass and Description
public class
BigDecimalMath

A class for arithmetic on BigDecimal that is not covered by its built-in methods.

public class
BigIntegerMath

A class for arithmetic on values of type BigInteger.

public class
DoubleMath

A class for arithmetic on doubles that is not covered by java.lang.Math.

pack-priv class
DoubleUtils

Utilities for double primitives.

public class
IntMath

A class for arithmetic on values of type int.

public abstract class
LinearTransformation

The representation of a linear transformation between real numbers x and y.

public class
LongMath

A class for arithmetic on values of type long.

pack-priv class
MathPreconditions

A collection of preconditions for math functions.

public class
PairedStats

An immutable value object capturing some basic statistics about a collection of paired double values (e.g. points on a plane).

public class
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.

public class
Quantiles

Provides a fluent API for calculating quantiles.

public class
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.

public class
StatsAccumulator

A mutable object which accumulates double values and tracks some basic statistics over all the values added so far.

pack-priv abstract class
ToDoubleRounder<X extends Number & Comparable<X>>

Helper type to implement rounding X to a representable double value according to a RoundingMode.