Package com.google.common.math


@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.

  • Classes
    Class
    Description
    A class for arithmetic on BigDecimal that is not covered by its built-in methods.
    A class for arithmetic on values of type BigInteger.
    A class for arithmetic on doubles that is not covered by Math.
    A class for arithmetic on values of type int.
    The representation of a linear transformation between real numbers x and y.
    This is an intermediate stage in the construction process.
    A class for arithmetic on values of type long.
    An immutable value object capturing some basic statistics about a collection of paired double values (e.g. points on a plane).
    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.
    Provides a fluent API for calculating quantiles.
    Describes the point in a fluent API chain where only the scale (i.e. the q in q-quantiles) has been specified.
    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.
    Describes the point in a fluent API chain where the scale and a multiple quantile indexes (i.e.
    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.
    A mutable object which accumulates double values and tracks some basic statistics over all the values added so far.