|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.function.PlusMult
public final class PlusMult
Only for performance tuning of compute intensive linear algebraic computations. Constructs functions that return one of
Constructor Summary | |
---|---|
PlusMult(double multiplicator)
|
Method Summary | |
---|---|
double |
apply(double a,
double b)
Returns the result of the function evaluation. |
double |
getMultiplicator()
|
static PlusMult |
minusMult(double constant)
a - b*constant. |
static PlusMult |
plusMult(double constant)
a + b*constant. |
void |
setMultiplicator(double multiplicator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlusMult(double multiplicator)
Method Detail |
---|
public double apply(double a, double b)
apply
in interface DoubleDoubleFunction
a
- a double for the first argumentb
- a double for the second argument
public static PlusMult minusMult(double constant)
public static PlusMult plusMult(double constant)
public double getMultiplicator()
public void setMultiplicator(double multiplicator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |