Class OneArgumentOperator
java.lang.Object
|
+--AbstractELOperator
|
+--OneArgumentOperator
- All Implemented Interfaces:
- ELOperator
- Direct Known Subclasses:
- Abs, ArcTangent, Blur, Derivative, DSymmetry, Grayscale, HSymmetry, TimeSpinner, ToHSV, ToRGB, TrigonometricOperator
- public abstract class OneArgumentOperator
- extends AbstractELOperator
- implements ELOperator
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneArgumentOperator
public OneArgumentOperator()
apply
public void apply(ELMatrix[] argument,
ELMatrix out,
ELEnvironment environment)
- Description copied from interface:
ELOperator
- Applies this operator.
- Specified by:
apply
in interface ELOperator
function
protected float function(float f)
- Your element wise operator.
getMaxNumArguments
public int getMaxNumArguments()
- Description copied from interface:
ELOperator
- Returns the maxiumum number of arguments this operator accepts.
Note: All operators that accept an argument accept an ELMatrix
argument.
- Specified by:
getMaxNumArguments
in interface ELOperator
getMinNumArguments
public int getMinNumArguments()
- Description copied from interface:
ELOperator
- Returns the minimum number of arguments this operator accepts.
- Specified by:
getMinNumArguments
in interface ELOperator
unparse
public java.lang.String unparse()
- Description copied from interface:
ELOperator
- How this operator should appear in EL code.
- Specified by:
unparse
in interface ELOperator
checkArguments
protected static void checkArguments(ELMatrix[] argument)