public class DoubleFunction extends AbstractFunction
| Constructor and Description |
|---|
DoubleFunction(java.lang.String name,
Term x,
smile.math.Function lambda)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
apply(Tuple o)
Applies the term on a data object.
|
double |
applyAsDouble(Tuple o)
Applies the term on a data object and produces an double-valued result.
|
void |
bind(StructType schema)
Binds the term to a schema.
|
DataType |
type()
Returns the data type of output values.
|
name, toString, variablesequals, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitapply, applyAsBoolean, applyAsByte, applyAsChar, applyAsFloat, applyAsInt, applyAsLong, applyAsShort, field, isConstant, isVariable, measure, termspublic DoubleFunction(java.lang.String name,
Term x,
smile.math.Function lambda)
name - the name of function.x - the term that the function is applied to.lambda - the function/lambda.public DataType type()
Termpublic void bind(StructType schema)
HyperTermbind in interface HyperTermbind in class AbstractFunctionpublic double applyAsDouble(Tuple o)
Term