本文整理汇总了Java中org.renjin.sexp.DoubleVector.isNA方法的典型用法代码示例。如果您正苦于以下问题:Java DoubleVector.isNA方法的具体用法?Java DoubleVector.isNA怎么用?Java DoubleVector.isNA使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.renjin.sexp.DoubleVector
的用法示例。
在下文中一共展示了DoubleVector.isNA方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
int i0;
if (index<argLength0) {
i0 = index;
} else {
i0 = (index%argLength0);
}
double arg0_i = arg0 .getElementAsDouble(i0);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
int i1;
if (index<argLength1) {
i1 = index;
} else {
i1 = (index%argLength1);
}
double arg1_i = arg1 .getElementAsDouble(i1);
if (DoubleVector.isNA(arg1_i)) {
return DoubleVector.NA;
}
return Ops.multiply(arg0_i, arg1_i);
}
示例2: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
int i0;
if (index<argLength0) {
i0 = index;
} else {
i0 = (index%argLength0);
}
double arg0_i = arg0 .getElementAsDouble(i0);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
int i1;
if (index<argLength1) {
i1 = index;
} else {
i1 = (index%argLength1);
}
double arg1_i = arg1 .getElementAsDouble(i1);
if (DoubleVector.isNA(arg1_i)) {
return DoubleVector.NA;
}
return Ops.plus(arg0_i, arg1_i);
}
示例3: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
int i0;
if (index<argLength0) {
i0 = index;
} else {
i0 = (index%argLength0);
}
double arg0_i = arg0 .getElementAsDouble(i0);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
int i1;
if (index<argLength1) {
i1 = index;
} else {
i1 = (index%argLength1);
}
int arg1_i = arg1 .getElementAsInt(i1);
if (IntVector.isNA(arg1_i)) {
return DoubleVector.NA;
}
return MathExt.signif(arg0_i, arg1_i);
}
示例4: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
int i0;
if (index<argLength0) {
i0 = index;
} else {
i0 = (index%argLength0);
}
double arg0_i = arg0 .getElementAsDouble(i0);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
int i1;
if (index<argLength1) {
i1 = index;
} else {
i1 = (index%argLength1);
}
int arg1_i = arg1 .getElementAsInt(i1);
if (IntVector.isNA(arg1_i)) {
return DoubleVector.NA;
}
return MathExt.round(arg0_i, arg1_i);
}
示例5: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return Math.log10(arg0_i);
}
示例6: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return MathExt.log1p(arg0_i);
}
示例7: getElementAsRawLogical
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public int getElementAsRawLogical(int index) {
int i0;
if (index<argLength0) {
i0 = index;
} else {
i0 = (index%argLength0);
}
double arg0_i = arg0 .getElementAsDouble(i0);
if (DoubleVector.isNA(arg0_i)) {
return IntVector.NA;
}
int i1;
if (index<argLength1) {
i1 = index;
} else {
i1 = (index%argLength1);
}
double arg1_i = arg1 .getElementAsDouble(i1);
if (DoubleVector.isNA(arg1_i)) {
return IntVector.NA;
}
if (Ops.greaterThan(arg0_i, arg1_i)) {
return 1;
} else {
return 0;
}
}
示例8: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return MathExt.gamma(arg0_i);
}
示例9: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return Math.asin(arg0_i);
}
示例10: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return Math.sinh(arg0_i);
}
示例11: or
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
@Deferrable
@Primitive("|")
@AllowNA
public static Logical or(double x, double y) {
if( (x != 0 && !DoubleVector.isNA(x)) ||
(y != 0 && !DoubleVector.isNA(y))) {
return Logical.TRUE;
} else if(x == 0 && y == 0) {
return Logical.FALSE;
} else {
return Logical.NA;
}
}
示例12: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return Math.cos(arg0_i);
}
示例13: getElementAsRawLogical
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public int getElementAsRawLogical(int index) {
int i0;
if (index<argLength0) {
i0 = index;
} else {
i0 = (index%argLength0);
}
double arg0_i = arg0 .getElementAsDouble(i0);
if (DoubleVector.isNA(arg0_i)) {
return IntVector.NA;
}
int i1;
if (index<argLength1) {
i1 = index;
} else {
i1 = (index%argLength1);
}
double arg1_i = arg1 .getElementAsDouble(i1);
if (DoubleVector.isNA(arg1_i)) {
return IntVector.NA;
}
if (Ops.notEqualTo(arg0_i, arg1_i)) {
return 1;
} else {
return 0;
}
}
示例14: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return Math.sin(arg0_i);
}
示例15: getElementAsDouble
import org.renjin.sexp.DoubleVector; //导入方法依赖的package包/类
public double getElementAsDouble(int index) {
double arg0_i = arg0 .getElementAsDouble(index);
if (DoubleVector.isNA(arg0_i)) {
return DoubleVector.NA;
}
return Math.exp(arg0_i);
}