Uses of Interface
org.apache.mahout.math.function.DoubleFunction

Packages that use DoubleFunction
org.apache.mahout.math Core base classes; Operations on primitive arrays such as sorting, partitioning and permuting. 
org.apache.mahout.math.function Core interfaces for functions, comparisons and procedures on objects and primitive data types. 
org.apache.mahout.math.jet.random   
org.apache.mahout.math.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. 
org.apache.mahout.math.matrix   
org.apache.mahout.math.matrix.impl Matrix implementations; You normally need not look at this package, because all concrete classes implement the abstract interfaces of org.apache.mahout.math.matrix, without subsetting or supersetting
 

Uses of DoubleFunction in org.apache.mahout.math
 

Methods in org.apache.mahout.math with parameters of type DoubleFunction
 double Vector.aggregate(DoubleDoubleFunction aggregator, DoubleFunction map)
          Examples speak louder than words: aggregate(plus, pow(2)) is another way to say getLengthSquared(), aggregate(max, abs) is norm(Double.POSITIVE_INFINITY).
 double NamedVector.aggregate(DoubleDoubleFunction aggregator, DoubleFunction map)
           
 double Matrix.aggregate(DoubleDoubleFunction combiner, DoubleFunction mapper)
          Collects the results of a function applied to each element of a matrix and then aggregated.
 double AbstractVector.aggregate(DoubleDoubleFunction aggregator, DoubleFunction map)
           
 double AbstractMatrix.aggregate(DoubleDoubleFunction combiner, DoubleFunction mapper)
          Collects the results of a function applied to each element of a matrix and then aggregated.
 Vector Vector.assign(DoubleFunction function)
          Apply the function to each element of the receiver
 Vector NamedVector.assign(DoubleFunction function)
           
 Matrix Matrix.assign(DoubleFunction function)
          Apply the function to each element of the receiver
 Vector AbstractVector.assign(DoubleFunction function)
           
 Matrix AbstractMatrix.assign(DoubleFunction function)
           
 

Uses of DoubleFunction in org.apache.mahout.math.function
 

Classes in org.apache.mahout.math.function that implement DoubleFunction
 class Mult
          Only for performance tuning of compute intensive linear algebraic computations.
 class SquareRootFunction
           
 

Fields in org.apache.mahout.math.function declared as DoubleFunction
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.LOG2
          Function that returns Math.log(a) / Math.log(2).
static DoubleFunction Functions.LOGARITHM
          Function that returns Math.log(a).
static DoubleFunction Functions.NEGATE
          Function that returns -a.
static DoubleFunction Functions.RINT
          Function that returns Math.rint(a).
static DoubleFunction Functions.SIGMOID
          Function that returns 1 / (1 + exp(-a)
static DoubleFunction Functions.SIGMOIDGRADIENT
          Function that returns a * (1-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 org.apache.mahout.math.function that return DoubleFunction
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.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.mathIEEEremainder(double b)
          Constructs a function that returns Math.IEEEremainder(a,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 org.apache.mahout.math.function with parameters of type DoubleFunction
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 org.apache.mahout.math.jet.random
 

Classes in org.apache.mahout.math.jet.random that implement DoubleFunction
 class AbstractContinousDistribution
          Abstract base class for all continuous distributions.
 class AbstractDiscreteDistribution
          Abstract base class for all discrete distributions.
 class AbstractDistribution
           
 class Exponential
           
 class Gamma
           
 class NegativeBinomial
          Mostly deprecated until unit tests are in place.
 class Normal
          Implements a normal distribution specified mean and standard deviation.
 class Poisson
          Partially deprecated until unit tests are in place.
 class Uniform
           
 

Uses of DoubleFunction in org.apache.mahout.math.jet.random.engine
 

Classes in org.apache.mahout.math.jet.random.engine that implement DoubleFunction
 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 RandomEngine
          Abstract base class for uniform pseudo-random number generating engines.
 

Uses of DoubleFunction in org.apache.mahout.math.matrix
 

Methods in org.apache.mahout.math.matrix with parameters of type DoubleFunction
 double DoubleMatrix2D.aggregate(DoubleDoubleFunction aggr, DoubleFunction f)
          Deprecated. Applies a function to each cell and aggregates the results.
 double DoubleMatrix1D.aggregate(DoubleDoubleFunction aggr, DoubleFunction f)
          Deprecated. Applies a function to each cell and aggregates the results.
 void DoubleMatrix2D.assign(DoubleFunction function)
          Deprecated. Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).
 void DoubleMatrix1D.assign(DoubleFunction function)
          Deprecated. Assigns the result of a function to each cell; x[i] = function(x[i]).
 

Uses of DoubleFunction in org.apache.mahout.math.matrix.impl
 

Methods in org.apache.mahout.math.matrix.impl with parameters of type DoubleFunction
 void SparseDoubleMatrix2D.assign(DoubleFunction function)
          Deprecated. Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).
 void DenseDoubleMatrix2D.assign(DoubleFunction function)
          Deprecated. Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).
 void DenseDoubleMatrix1D.assign(DoubleFunction function)
          Deprecated. Assigns the result of a function to each cell; x[i] = function(x[i]).
 



Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.