Syntax:
DELTA (number1,number2 )
Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise. Use this function to filter a set of values. For example, by summing several DELTA functions you calculate the count of equal pairs. This function is also known as the Kronecker Delta function.
| Modifier and Type | Field and Description |
|---|---|
| public static final FreeRefFunction | |
| private static final NumberEval | |
| private static final NumberEval |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2)
Implements org. |
| public ValueEval | evaluate(ValueEval[]
the pre-evaluated arguments for this function. args is never args, OperationEvaluationContext null,
nor are any of its elements.primarily used to identify the source cell containing the formula being evaluated.
may also be used to dynamically create reference evals. ec)Implements org.
|
| private static Double |
| instance | back to summary |
|---|---|
| public static final FreeRefFunction instance | |
| ONE | back to summary |
|---|---|
| private static final NumberEval ONE | |
| ZERO | back to summary |
|---|---|
| private static final NumberEval ZERO | |
| Delta | back to summary |
|---|---|
| public Delta() | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2) Implements org. Doc from org. see
| |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) Implements org.
| |
| evaluateValue | back to summary |
|---|---|
| private static Double evaluateValue(ValueEval arg, int srcRowIndex, int srcColumnIndex) throws EvaluationException | |