SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.misc
Interface R.ifelse

Enclosing class:
R

public static interface R.ifelse

the placeholder for R.ifelse


Method Summary
 double no(double x)
          the value to return if x does not satisfy the if part of the statement
 boolean test(double x)
          Decide whether x satisfies the if part of the statement.
 double yes(double x)
          the value to return if x satisfies the if part of the statement
 

Method Detail

test

boolean test(double x)
Decide whether x satisfies the if part of the statement.

Parameters:
x - a double
Returns:
true iff x satisfies the if part of the statement

yes

double yes(double x)
the value to return if x satisfies the if part of the statement

Parameters:
x - a double
Returns:
a "yes" double

no

double no(double x)
the value to return if x does not satisfy the if part of the statement

Parameters:
x - a double
Returns:
a "no" double

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.