|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.jet.math.IntFunctions
@Deprecated public class IntFunctions
Field Summary | |
---|---|
static IntFunction |
abs
Deprecated. Function that returns Math.abs(a) == (a < 0) ? -a : a. |
static IntIntFunction |
and
Deprecated. Function that returns a & b. |
static IntIntFunction |
compare
Deprecated. Function that returns a < b ? -1 : a > b ? 1 : 0. |
static IntIntFunction |
div
Deprecated. Function that returns a / b. |
static IntIntFunction |
equals
Deprecated. Function that returns a == b ? 1 : 0. |
static IntFunction |
identity
Deprecated. Function that returns its argument. |
static IntIntFunction |
max
Deprecated. Function that returns Math.max(a,b). |
static IntIntFunction |
min
Deprecated. Function that returns Math.min(a,b). |
static IntIntFunction |
minus
Deprecated. Function that returns a - b. |
static IntIntFunction |
mult
Deprecated. Function that returns a * b. |
static IntFunction |
not
Deprecated. Function that returns ~a. |
static IntIntFunction |
or
Deprecated. Function that returns a | b. |
static IntIntFunction |
plus
Deprecated. Function that returns a + b. |
static IntIntFunction |
pow
Deprecated. Function that returns (int) Math.pow(a,b). |
static IntFunction |
sign
Deprecated. Function that returns a < 0 ? -1 : a > 0 ? 1 : 0. |
static IntFunction |
square
Deprecated. Function that returns a * a. |
Method Summary | |
---|---|
static IntFunction |
and(int b)
Deprecated. Constructs a function that returns a & b. |
static IntFunction |
between(int from,
int to)
Deprecated. Constructs a function that returns (from<=a && a<=to) ? 1 : 0. |
static IntFunction |
chain(IntFunction g,
IntFunction h)
Deprecated. Constructs the function g( h(a) ). |
static IntIntFunction |
chain(IntFunction g,
IntIntFunction h)
Deprecated. Constructs the function g( h(a,b) ). |
static IntIntFunction |
chain(IntIntFunction f,
IntFunction g,
IntFunction h)
Deprecated. Constructs the function f( g(a), h(b) ). |
static IntFunction |
compare(int b)
Deprecated. Constructs a function that returns a < b ? -1 : a > b ? 1 : 0. |
static IntFunction |
constant(int c)
Deprecated. Constructs a function that returns the constant c. |
static IntFunction |
div(int b)
Deprecated. Constructs a function that returns a / b. |
static IntFunction |
equals(int b)
Deprecated. Constructs a function that returns a == b ? 1 : 0. |
static IntFunction |
max(int b)
Deprecated. Constructs a function that returns Math.max(a,b). |
static IntFunction |
min(int b)
Deprecated. Constructs a function that returns Math.min(a,b). |
static IntFunction |
minus(int b)
Deprecated. Constructs a function that returns a - b. |
static IntFunction |
mult(int b)
Deprecated. Constructs a function that returns a * b. |
static IntFunction |
or(int b)
Deprecated. Constructs a function that returns a | b. |
static IntFunction |
plus(int b)
Deprecated. Constructs a function that returns a + b. |
static IntFunction |
pow(int b)
Deprecated. Constructs a function that returns (int) Math.pow(a,b). |
static IntFunction |
random()
Deprecated. Constructs a function that returns a 32 bit uniformly distributed random number in the closed interval [Integer.MIN_VALUE,Integer.MAX_VALUE] (including Integer.MIN_VALUE and Integer.MAX_VALUE). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IntFunction abs
public static final IntFunction identity
public static final IntFunction not
public static final IntFunction sign
public static final IntFunction square
public static final IntIntFunction and
public static final IntIntFunction compare
public static final IntIntFunction div
public static final IntIntFunction equals
public static final IntIntFunction max
public static final IntIntFunction min
public static final IntIntFunction minus
public static final IntIntFunction mult
public static final IntIntFunction or
public static final IntIntFunction plus
public static final IntIntFunction pow
Method Detail |
---|
public static IntFunction and(int b)
public static IntFunction between(int from, int to)
public static IntFunction chain(IntFunction g, IntFunction h)
g
- a unary function.h
- a unary function.
public static IntIntFunction chain(IntFunction g, IntIntFunction h)
g
- a unary function.h
- a binary function.
public static IntIntFunction chain(IntIntFunction f, IntFunction g, IntFunction h)
f
- a binary function.g
- a unary function.h
- a unary function.
public static IntFunction compare(int b)
public static IntFunction constant(int c)
public static IntFunction div(int b)
public static IntFunction equals(int b)
public static IntFunction max(int b)
public static IntFunction min(int b)
public static IntFunction minus(int b)
public static IntFunction mult(int b)
public static IntFunction or(int b)
public static IntFunction plus(int b)
public static IntFunction pow(int b)
public static IntFunction random()
MersenneTwister
and is seeded with the current time. Note that any random engine derived from RandomEngine
and any random distribution derived from AbstractDistribution
are function objects, because they implement the proper
interfaces. Thus, if you are not happy with the default, just pass your favourite random generator to function
evaluating methods.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |