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
org.apache.mahout.math.matrix.linalg Linear Algebraic matrix computations operating on DoubleMatrix2D and DoubleMatrix1D
 

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 AbstractVector.aggregate(BinaryFunction aggregator, UnaryFunction map)
           
 Vector Vector.assign(UnaryFunction function)
          Apply the function to each element of the receiver
 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
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 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
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class ExponentialPower
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Gamma
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 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
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Normal
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class Poisson
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 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 DRand
          Quick medium quality uniform pseudo-random number generator.
 class MersenneTwister
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 class MersenneTwister64
          Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.
 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 DoubleMatrix3D.aggregate(BinaryFunction aggr, UnaryFunction f)
          Deprecated. Applies a function to each cell and aggregates the results.
 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.
 DoubleMatrix3D DoubleMatrix3D.assign(UnaryFunction function)
          Deprecated. Assigns the result of a function to each cell; x[slice,row,col] = function(x[slice,row,col]).
 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 RCDoubleMatrix2D.assign(UnaryFunction function)
          Deprecated.  
 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]).
 

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

Methods in org.apache.mahout.math.matrix.linalg with parameters of type UnaryFunction
 void SeqBlas.assign(DoubleMatrix2D A, UnaryFunction function)
          Deprecated.  
 void Blas.assign(DoubleMatrix2D A, UnaryFunction function)
          Deprecated. Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).
 



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