public abstract class AstBinOp extends AstPrimitive
| Constructor and Description |
|---|
AstBinOp() |
| Modifier and Type | Method and Description |
|---|---|
Val |
apply(Env env,
Env.StackHelp stk,
AstRoot[] asts)
Primary method to invoke this function, passing all the parameters
as the `asts` list.
|
java.lang.String[] |
args()
List of argument names.
|
boolean |
categoricalOK()
Does it make sense to run this operation on a categorical variable ?
|
ValFrame |
frame_op_scalar(Frame fr,
double d)
Auto-widen the scalar to every element of the frame
|
int |
nargs()
Number of function's arguments + 1.
|
abstract double |
op(double l,
double r)
Override to express a basic math primitive
|
Val |
prim_apply(Val left,
Val rite) |
double |
str_op(BufferedString l,
BufferedString r) |
description, example, execasBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSONpublic java.lang.String[] args()
AstPrimitiveargs in class AstPrimitivepublic int nargs()
AstPrimitivenargs in class AstPrimitivepublic Val apply(Env env, Env.StackHelp stk, AstRoot[] asts)
AstPrimitivePrimary method to invoke this function, passing all the parameters as the `asts` list.
apply in class AstPrimitiveenv - Current execution environment. Variables are looked up here.stk - TODO need clarificationasts - List of AstRoot expressions that are arguments to the
function. First element in this list is the function itself.public abstract double op(double l,
double r)
public double str_op(BufferedString l, BufferedString r)
public ValFrame frame_op_scalar(Frame fr, double d)
public boolean categoricalOK()