public final class DoubleMult extends Object implements DoubleFunction
Modifier and Type | Field and Description |
---|---|
double |
multiplicator
Public read/write access to avoid frequent object construction.
|
Modifier and Type | Method and Description |
---|---|
double |
apply(double a)
Returns the result of the function evaluation.
|
static DoubleMult |
div(double constant)
a / constant.
|
static DoubleMult |
mult(double constant)
a * constant.
|
public double multiplicator
public final double apply(double a)
apply
in interface DoubleFunction
a
- argument passed to the function.public static DoubleMult div(double constant)
public static DoubleMult mult(double constant)
Jump to the Parallel Colt Homepage