|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.math.function.DoubleDoubleFunction
org.apache.mahout.math.function.TimesFunction
public final class TimesFunction
| Constructor Summary | |
|---|---|
TimesFunction()
|
|
| Method Summary | |
|---|---|
double |
apply(double x,
double y)
Computes the product of two numbers. |
boolean |
isAssociative()
x * (y * z) = (x * y) * z for any x, y, z |
boolean |
isCommutative()
x * y = y * x for any x, y |
boolean |
isLikeLeftMult()
0 * y = 0 for any y |
boolean |
isLikeRightMult()
x * 0 = 0 for any x |
boolean |
isLikeRightPlus()
x * 0 = y only if y = 0 |
| Methods inherited from class org.apache.mahout.math.function.DoubleDoubleFunction |
|---|
isAssociativeAndCommutative, isDensifying, isLikeMult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimesFunction()
| Method Detail |
|---|
public double apply(double x,
double y)
apply in class DoubleDoubleFunctionx - first argumenty - second argument
public boolean isLikeRightPlus()
isLikeRightPlus in class DoubleDoubleFunctionpublic boolean isLikeLeftMult()
isLikeLeftMult in class DoubleDoubleFunctionpublic boolean isLikeRightMult()
isLikeRightMult in class DoubleDoubleFunctionpublic boolean isCommutative()
isCommutative in class DoubleDoubleFunctionpublic boolean isAssociative()
isAssociative in class DoubleDoubleFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||