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

Packages that use UnaryFunction
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 Large variety of probability distributions featuring high performance generation of random numbers, CDF's and PDF's. 
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 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
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 UnaryFunction in org.apache.mahout.math
 

Methods in org.apache.mahout.math with parameters of type UnaryFunction
 double Vector.aggregate(BinaryFunction aggregator, UnaryFunction 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(BinaryFunction aggregator, UnaryFunction map)
           
 double Matrix.aggregate(BinaryFunction combiner, UnaryFunction mapper)
          Collects the results of a function applied to each element of a matrix and then aggregated.
 double AbstractVector.aggregate(BinaryFunction aggregator, UnaryFunction map)
           
 double AbstractMatrix.aggregate(BinaryFunction combiner, UnaryFunction mapper)
          Collects the results of a function applied to each element of a matrix and then aggregated.
 Vector Vector.assign(UnaryFunction function)
          Apply the function to each element of the receiver
 Vector NamedVector.assign(UnaryFunction function)
           
 Matrix Matrix.assign(UnaryFunction function)
          Apply the function to each element of the receiver
 Vector AbstractVector.assign(UnaryFunction function)
           
 Matrix AbstractMatrix.assign(UnaryFunction function)
           
 

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

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

Fields in org.apache.mahout.math.function declared as UnaryFunction
static UnaryFunction Functions.ABS
          Function that returns Math.abs(a).
static UnaryFunction Functions.ACOS
          Function that returns Math.acos(a).
static UnaryFunction Functions.ASIN
          Function that returns Math.asin(a).
static UnaryFunction Functions.ATAN
          Function that returns Math.atan(a).
static UnaryFunction Functions.CEIL
          Function that returns Math.ceil(a).
static UnaryFunction Functions.COS
          Function that returns Math.cos(a).
static UnaryFunction Functions.EXP
          Function that returns Math.exp(a).
static UnaryFunction Functions.FLOOR
          Function that returns Math.floor(a).
static UnaryFunction Functions.IDENTITY
          Function that returns its argument.
static UnaryFunction Functions.INV
          Function that returns 1.0 / a.
static UnaryFunction Functions.LOG2
          Function that returns Math.log(a) / Math.log(2).
static UnaryFunction Functions.LOGARITHM
          Function that returns Math.log(a).
static UnaryFunction Functions.NEGATE
          Function that returns -a.
static UnaryFunction Functions.RINT
          Function that returns Math.rint(a).
static UnaryFunction Functions.SIGN
          Function that returns a < 0 ? -1 : a > 0 ? 1 : 0.
static UnaryFunction Functions.SIN
          Function that returns Math.sin(a).
static UnaryFunction Functions.SQRT
          Function that returns Math.sqrt(a).
static UnaryFunction Functions.SQUARE
          Function that returns a * a.
static UnaryFunction Functions.TAN
          Function that returns Math.tan(a).
 

Methods in org.apache.mahout.math.function that return UnaryFunction
static UnaryFunction Functions.between(double from, double to)
          Constructs a function that returns (from<=a && a<=to) ? 1 : 0.
static UnaryFunction Functions.bindArg1(BinaryFunction function, double c)
          Constructs a unary function from a binary function with the first operand (argument) fixed to the given constant c.
static UnaryFunction Functions.bindArg2(BinaryFunction function, double c)
          Constructs a unary function from a binary function with the second operand (argument) fixed to the given constant c.
static UnaryFunction Functions.chain(UnaryFunction g, UnaryFunction h)
          Constructs the function g( h(a) ).
static UnaryFunction Functions.compare(double b)
          Constructs a function that returns a < b ? -1 : a > b ? 1 : 0.
static UnaryFunction Functions.constant(double c)
          Constructs a function that returns the constant c.
static UnaryFunction Functions.div(double b)
          Constructs a function that returns a / b.
static UnaryFunction Functions.equals(double b)
          Constructs a function that returns a == b ? 1 : 0.
static UnaryFunction Functions.greater(double b)
          Constructs a function that returns a > b ? 1 : 0.
static UnaryFunction Functions.IEEEremainder(double b)
          Constructs a function that returns Math.IEEEremainder(a,b).
static UnaryFunction Functions.less(double b)
          Constructs a function that returns a < b ? 1 : 0.
static UnaryFunction Functions.lg(double b)
          Constructs a function that returns Math.log(a) / Math.log(b).
static UnaryFunction Functions.max(double b)
          Constructs a function that returns Math.max(a,b).
static UnaryFunction Functions.min(double b)
          Constructs a function that returns Math.min(a,b).
static UnaryFunction Functions.minus(double b)
          Constructs a function that returns a - b.
static UnaryFunction Functions.mod(double b)
          Constructs a function that returns a % b.
static UnaryFunction Functions.mult(double b)
          Constructs a function that returns a * b.
static UnaryFunction Functions.plus(double b)
          Constructs a function that returns a + b.
static UnaryFunction Functions.pow(double b)
          Constructs a function that returns Math.pow(a,b).
static UnaryFunction 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 UnaryFunction 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 UnaryFunction
static BinaryFunction Functions.chain(BinaryFunction f, UnaryFunction g, UnaryFunction h)
          Constructs the function f( g(a), h(b) ).
static BinaryFunction Functions.chain(UnaryFunction g, BinaryFunction h)
          Constructs the function g( h(a,b) ).
static UnaryFunction Functions.chain(UnaryFunction g, UnaryFunction h)
          Constructs the function g( h(a) ).
 

Uses of UnaryFunction in org.apache.mahout.math.jet.random
 

Classes in org.apache.mahout.math.jet.random that implement UnaryFunction
 class AbstractContinousDistribution
          Abstract base class for all continuous distributions.
 class AbstractDiscreteDistribution
          Abstract base class for all discrete distributions.
 class AbstractDistribution
           
 class Beta
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Binomial
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class BreitWigner
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class BreitWignerMeanSquare
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class ChiSquare
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Empirical
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class EmpiricalWalker
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Exponential
           
 class ExponentialPower
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Gamma
           
 class Hyperbolic
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class HyperGeometric
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Logarithmic
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 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 PoissonSlow
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class StudentT
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Uniform
           
 class VonMises
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Zeta
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 

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

Classes in org.apache.mahout.math.jet.random.engine that implement UnaryFunction
 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 UnaryFunction in org.apache.mahout.math.matrix
 

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

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

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



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