public class IntFunction extends AbstractFunction
| Constructor and Description |
|---|
IntFunction(java.lang.String name,
Term x,
smile.math.IntFunction lambda)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
apply(Tuple o)
Applies the term on a data object.
|
int |
applyAsInt(Tuple o)
Applies the term on a data object and produces an int-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, applyAsDouble, applyAsFloat, applyAsLong, applyAsShort, field, isConstant, isVariable, measure, termspublic IntFunction(java.lang.String name,
Term x,
smile.math.IntFunction 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 int applyAsInt(Tuple o)
Term