public class Operations extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Operations.Addition
Addition with boolean or
|
static class |
Operations.Division
Division with boolean and of negated second operand
|
static class |
Operations.DivisionTowardsFloor
Division with boolean and of negated second operand and rounds down to
negative infinity
|
static class |
Operations.DivisionWithZero
Division with boolean and of negated second operand and returns zero if
denominator is zero
|
static class |
Operations.Exponentiation
Exponentiation with boolean and
|
static class |
Operations.Maximum
Select maximum of a and b
|
static class |
Operations.Minimum
Select minimum of a and b
|
static class |
Operations.Multiplication
Multiplication with boolean and
|
static class |
Operations.Negation
Negation with boolean not
|
static class |
Operations.Remainder
Remainder
|
static class |
Operations.Subtraction
Subtraction with boolean or of negated second operand
|
static class |
Operations.UseBase
Use given value if a > b else use a
|
static class |
Operations.UseIfEqualTo
Use given value if a == b else use a
|
static class |
Operations.UseIfGreaterThan
Use given value if a > b else use a
|
static class |
Operations.UseIfGreaterThanOrEqualTo
Use given value if a >= b else use a
|
static class |
Operations.UseIfLessThan
Use given value if a < b else use a
|
static class |
Operations.UseIfLessThanOrEqualTo
Use given value if a <= b else use a
|
Constructor and Description |
---|
Operations() |
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
bracketIfNecessary(String a)
This function returns the name of the dataset, bracketed if it already
includes some mathematical symbol
|
static String |
createBinaryOperationName(String operator,
String a,
String b)
Create a string for a binary operator and its operands
|
static String |
createFunctionName(String function,
String... arguments)
Create a string for a function and its arguments
|
static Dataset |
operate(BinaryOperation op,
Object a,
Object b,
Dataset o)
Operate on a dataset
|
static Dataset |
operate(UnaryOperation op,
Object a,
Dataset o)
Operate on a dataset
|
public Operations()
public static StringBuilder bracketIfNecessary(String a)
dataset
- public static String createBinaryOperationName(String operator, String a, String b)
operator
- a
- 1st operand nameb
- 2nd operand namepublic static String createFunctionName(String function, String... arguments)
function
- arguments
- public static Dataset operate(UnaryOperation op, Object a, Dataset o)
op
- unary operatora
- dataseto
- output can be null - in which case, a new dataset is createdCopyright © 2014–2018 Eclipse Foundation. All rights reserved.