## Uses of Interface
cern.colt.function.DoubleFunction

- Packages that use DoubleFunction
  Package | Description
  --- | ---
  cern.colt.map | Automatically growing and shrinking maps holding objects or primitive data types such as `int`, `double`, etc.
  cern.colt.matrix | Matrix interfaces and factories; efficient and flexible dense and sparse 1, 2, 3 and d-dimensional matrices holding objects or primitive data types such as `int`, `double`, etc; Templated, fixed sized (not dynamically resizable); Also known as multi-dimensional arrays or Data Cubes.
  cern.colt.matrix.impl | Matrix implementations; You normally need not look at this package, because all concrete classes implement the abstract interfaces of `cern.colt.matrix`, without subsetting or supersetting.
  cern.colt.matrix.linalg | Linear Algebraic matrix computations operating on `DoubleMatrix2D` and `DoubleMatrix1D`.
  cern.jet.math | Tools for basic and advanced mathematics: Arithmetics and Algebra, Polynomials and Chebyshev series, Bessel and Airy functions, Function Objects for generic function evaluation, etc.
  cern.jet.random | Large variety of probability distributions featuring high performance generation of random numbers, CDF's and PDF's.
  cern.jet.random.engine | Engines generating strong uniformly distributed pseudo-random numbers; Needed by all JET probability distributions since they rely on uniform random numbers to generate random numbers from their own distribution.
  hep.aida.bin | Multisets (bags) with efficient statistics operations defined upon; This package requires the Colt distribution.

- - ### Uses of DoubleFunction in cern.colt.map

    Methods in cern.colt.map with parameters of type DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `void` | OpenIntDoubleHashMap.`assign(DoubleFunction function)` Assigns the result of a function to each value; `v[i] = function(v[i])`.
    `void` | AbstractIntDoubleMap.`assign(DoubleFunction function)` Assigns the result of a function to each value; `v[i] = function(v[i])`.

  - ### Uses of DoubleFunction in cern.colt.matrix

    Methods in cern.colt.matrix with parameters of type DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `double` | DoubleMatrix3D.`aggregate(DoubleDoubleFunction aggr, DoubleFunction f)` Applies a function to each cell and aggregates the results.
    `double` | DoubleMatrix2D.`aggregate(DoubleDoubleFunction aggr, DoubleFunction f)` Applies a function to each cell and aggregates the results.
    `double` | DoubleMatrix1D.`aggregate(DoubleDoubleFunction aggr, DoubleFunction f)` Applies a function to each cell and aggregates the results.
    `DoubleMatrix3D` | DoubleMatrix3D.`assign(DoubleFunction function)` Assigns the result of a function to each cell; `x[slice,row,col] = function(x[slice,row,col])`.
    `DoubleMatrix2D` | DoubleMatrix2D.`assign(DoubleFunction function)` Assigns the result of a function to each cell; `x[row,col] = function(x[row,col])`.
    `DoubleMatrix1D` | DoubleMatrix1D.`assign(DoubleFunction function)` Assigns the result of a function to each cell; `x[i] = function(x[i])`.

  - ### Uses of DoubleFunction in cern.colt.matrix.impl

    Methods in cern.colt.matrix.impl with parameters of type DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `DoubleMatrix2D` | SparseDoubleMatrix2D.`assign(DoubleFunction function)` Assigns the result of a function to each cell; `x[row,col] = function(x[row,col])`.
    `DoubleMatrix2D` | RCDoubleMatrix2D.`assign(DoubleFunction function)`
    `DoubleMatrix2D` | DenseDoubleMatrix2D.`assign(DoubleFunction function)` Assigns the result of a function to each cell; `x[row,col] = function(x[row,col])`.
    `DoubleMatrix1D` | DenseDoubleMatrix1D.`assign(DoubleFunction function)` Assigns the result of a function to each cell; `x[i] = function(x[i])`.

  - ### Uses of DoubleFunction in cern.colt.matrix.linalg

    Methods in cern.colt.matrix.linalg with parameters of type DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `void` | SmpBlas.`assign(DoubleMatrix2D A, DoubleFunction function)`
    `void` | SeqBlas.`assign(DoubleMatrix2D A, DoubleFunction function)`
    `void` | Blas.`assign(DoubleMatrix2D A, DoubleFunction function)` Assigns the result of a function to each cell; `x[row,col] = function(x[row,col])`.

  - ### Uses of DoubleFunction in cern.jet.math

    Classes in cern.jet.math that implement DoubleFunction
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Mult` Only for performance tuning of compute intensive linear algebraic computations.

    Fields in cern.jet.math declared as DoubleFunction
    Modifier and Type | Field and Description
    --- | ---
    `static DoubleFunction` | Functions.`abs` Function that returns `Math.abs(a)`.
    `static DoubleFunction` | Functions.`acos` Function that returns `Math.acos(a)`.
    `static DoubleFunction` | Functions.`asin` Function that returns `Math.asin(a)`.
    `static DoubleFunction` | Functions.`atan` Function that returns `Math.atan(a)`.
    `static DoubleFunction` | Functions.`ceil` Function that returns `Math.ceil(a)`.
    `static DoubleFunction` | Functions.`cos` Function that returns `Math.cos(a)`.
    `static DoubleFunction` | Functions.`exp` Function that returns `Math.exp(a)`.
    `static DoubleFunction` | Functions.`floor` Function that returns `Math.floor(a)`.
    `static DoubleFunction` | Functions.`identity` Function that returns its argument.
    `static DoubleFunction` | Functions.`inv` Function that returns `1.0 / a`.
    `static DoubleFunction` | Functions.`log` Function that returns `Math.log(a)`.
    `static DoubleFunction` | Functions.`log2` Function that returns `Math.log(a) / Math.log(2)`.
    `static DoubleFunction` | Functions.`neg` Function that returns `-a`.
    `static DoubleFunction` | Functions.`rint` Function that returns `Math.rint(a)`.
    `static DoubleFunction` | Functions.`sign` Function that returns `a < 0 ? -1 : a > 0 ? 1 : 0`.
    `static DoubleFunction` | Functions.`sin` Function that returns `Math.sin(a)`.
    `static DoubleFunction` | Functions.`sqrt` Function that returns `Math.sqrt(a)`.
    `static DoubleFunction` | Functions.`square` Function that returns `a * a`.
    `static DoubleFunction` | Functions.`tan` Function that returns `Math.tan(a)`.

    Methods in cern.jet.math that return DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `static DoubleFunction` | Functions.`between(double from, double to)` Constructs a function that returns `(from<=a && a<=to) ? 1 : 0`.
    `static DoubleFunction` | Functions.`bindArg1(DoubleDoubleFunction function, double c)` Constructs a unary function from a binary function with the first operand (argument) fixed to the given constant `c`.
    `static DoubleFunction` | Functions.`bindArg2(DoubleDoubleFunction function, double c)` Constructs a unary function from a binary function with the second operand (argument) fixed to the given constant `c`.
    `static DoubleFunction` | Functions.`chain(DoubleFunction g, DoubleFunction h)` Constructs the function `g( h(a) )`.
    `static DoubleFunction` | Functions.`compare(double b)` Constructs a function that returns `a < b ? -1 : a > b ? 1 : 0`.
    `static DoubleFunction` | Functions.`constant(double c)` Constructs a function that returns the constant `c`.
    `static DoubleFunction` | Functions.`div(double b)` Constructs a function that returns `a / b`.
    `static DoubleFunction` | Functions.`equals(double b)` Constructs a function that returns `a == b ? 1 : 0`.
    `static DoubleFunction` | Functions.`greater(double b)` Constructs a function that returns `a > b ? 1 : 0`.
    `static DoubleFunction` | Functions.`IEEEremainder(double b)` Constructs a function that returns `Math.IEEEremainder(a,b)`.
    `static DoubleFunction` | Functions.`less(double b)` Constructs a function that returns `a < b ? 1 : 0`.
    `static DoubleFunction` | Functions.`lg(double b)` Constructs a function that returns ``Math.log(a) / Math.log(b)``.
    `static DoubleFunction` | Functions.`max(double b)` Constructs a function that returns `Math.max(a,b)`.
    `static DoubleFunction` | Functions.`min(double b)` Constructs a function that returns `Math.min(a,b)`.
    `static DoubleFunction` | Functions.`minus(double b)` Constructs a function that returns `a - b`.
    `static DoubleFunction` | Functions.`mod(double b)` Constructs a function that returns `a % b`.
    `static DoubleFunction` | Functions.`mult(double b)` Constructs a function that returns `a * b`.
    `static DoubleFunction` | Functions.`plus(double b)` Constructs a function that returns `a + b`.
    `static DoubleFunction` | Functions.`pow(double b)` Constructs a function that returns `Math.pow(a,b)`.
    `static DoubleFunction` | Functions.`random()` Constructs a function that returns a new uniform random number in the open unit interval `(0.0,1.0)` (excluding 0.0 and 1.0).
    `static DoubleFunction` | Functions.`round(double precision)` Constructs a function that returns the number rounded to the given precision; `Math.rint(a/precision)*precision`.

    Methods in cern.jet.math with parameters of type DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `static DoubleDoubleFunction` | Functions.`chain(DoubleDoubleFunction f, DoubleFunction g, DoubleFunction h)` Constructs the function `f( g(a), h(b) )`.
    `static DoubleDoubleFunction` | Functions.`chain(DoubleFunction g, DoubleDoubleFunction h)` Constructs the function `g( h(a,b) )`.
    `static DoubleFunction` | Functions.`chain(DoubleFunction g, DoubleFunction h)` Constructs the function `g( h(a) )`.

  - ### Uses of DoubleFunction in cern.jet.random

    Classes in cern.jet.random that implement DoubleFunction
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractContinousDistribution` Abstract base class for all continous distributions.
    `class` | `AbstractDiscreteDistribution` Abstract base class for all discrete distributions.
    `class` | `AbstractDistribution` Abstract base class for all random distributions.
    `class` | `Beta` Beta distribution; math definition and animated definition.
    `class` | `Binomial` Binomial distribution; See the math definition and animated definition.
    `class` | `BreitWigner` BreitWigner (aka Lorentz) distribution; See the math definition.
    `class` | `BreitWignerMeanSquare` Mean-square BreitWigner distribution; See the math definition.
    `class` | `ChiSquare` ChiSquare distribution; See the math definition and animated definition.
    `class` | `Empirical` Empirical distribution.
    `class` | `EmpiricalWalker` Discrete Empirical distribution (pdf's can be specified).
    `class` | `Exponential` Exponential Distribution (aka Negative Exponential Distribution); See the math definition animated definition.
    `class` | `ExponentialPower` Exponential Power distribution.
    `class` | `Gamma` Gamma distribution; math definition, definition of gamma function and animated definition.
    `class` | `Hyperbolic` Hyperbolic distribution.
    `class` | `HyperGeometric` HyperGeometric distribution; See the math definition The hypergeometric distribution with parameters `N`, `n` and `s` is the probability distribution of the random variable X, whose value is the number of successes in a sample of `n` items from a population of size `N` that has `s` 'success' items and `N - s` 'failure' items.
    `class` | `Logarithmic` Logarithmic distribution.
    `class` | `NegativeBinomial` Negative Binomial distribution; See the math definition.
    `class` | `Normal` Normal (aka Gaussian) distribution; See the math definition and animated definition.
    `class` | `Poisson` Poisson distribution (quick); See the math definition and animated definition.
    `class` | `PoissonSlow` Poisson distribution; See the math definition and animated definition.
    `class` | `StudentT` StudentT distribution (aka T-distribution); See the math definition and animated definition.
    `class` | `Uniform` Uniform distribution; Math definition and animated definition.
    `class` | `VonMises` Von Mises distribution.
    `class` | `Zeta` Zeta distribution.

  - ### Uses of DoubleFunction in cern.jet.random.engine

    Classes in cern.jet.random.engine that implement DoubleFunction
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DRand` Quick medium quality uniform pseudo-random number generator.
    `class` | `MersenneTwister` MersenneTwister (MT19937) is one of the strongest uniform pseudo-random number generators known so far; at the same time it is quick.
    `class` | `MersenneTwister64` Same as `MersenneTwister` except that method `raw()` returns 64 bit random numbers instead of 32 bit random numbers.
    `class` | `RandomEngine` Abstract base class for uniform pseudo-random number generating engines.

  - ### Uses of DoubleFunction in hep.aida.bin

    Methods in hep.aida.bin with parameters of type DoubleFunction
    Modifier and Type | Method and Description
    --- | ---
    `double` | DynamicBin1D.`aggregate(DoubleDoubleFunction aggr, DoubleFunction f)` Applies a function to each element and aggregates the results.

Jump to the Colt Homepage