public static interface R.ifelse
test
which is filled with elements selected from either yes or no
depending on whether the element of test is true or false.| Modifier and Type | Method and Description |
|---|---|
double |
no(double x)
Return value for a
false element of test. |
boolean |
test(double x)
Decide whether x satisfies the
boolean test. |
double |
yes(double x)
Return value for a
true element of test. |
boolean test(double x)
boolean test.x - a numbertrue if x satisfies the boolean testdouble yes(double x)
true element of test.x - a numberdouble no(double x)
false element of test.x - a number