org.apache.mahout.math.function
Class TimesFunction
java.lang.Object
org.apache.mahout.math.function.TimesFunction
- All Implemented Interfaces:
- DoubleDoubleFunction
public final class TimesFunction
- extends Object
- implements DoubleDoubleFunction
Method Summary |
double |
apply(double x,
double y)
Computes the product of two numbers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimesFunction
public TimesFunction()
apply
public double apply(double x,
double y)
- Computes the product of two numbers.
- Specified by:
apply
in interface DoubleDoubleFunction
- Parameters:
x
- first argumenty
- second argument
- Returns:
- the product
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.