org.apache.commons.math3.stat.descriptive.rank.Percentile.replaceAndSlice()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.apache.commons.math3.stat.descriptive.rank.Percentile.replaceAndSlice()方法的一些代码示例,展示了Percentile.replaceAndSlice()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Percentile.replaceAndSlice()方法的具体详情如下:
包路径:org.apache.commons.math3.stat.descriptive.rank.Percentile
类名称:Percentile
方法名:replaceAndSlice

Percentile.replaceAndSlice介绍

[英]Replace every occurrence of a given value with a replacement value in a copied slice of array defined by array part from [begin, begin+length).
[中]用[begin,begin+length]中的数组部分定义的复制数组切片中的替换值替换给定值的每次出现。

代码示例

代码示例来源:origin: org.apache.commons/commons-math3

switch (nanStrategy) {
case MAXIMAL:// Replace NaNs with +INFs
  work = replaceAndSlice(values, begin, length, Double.NaN, Double.POSITIVE_INFINITY);
  break;
case MINIMAL:// Replace NaNs with -INFs
  work = replaceAndSlice(values, begin, length, Double.NaN, Double.NEGATIVE_INFINITY);
  break;
case REMOVED:// Drop NaNs from data

代码示例来源:origin: geogebra/geogebra

switch (nanStrategy) {
case MAXIMAL:// Replace NaNs with +INFs
  work = replaceAndSlice(values, begin, length, Double.NaN, Double.POSITIVE_INFINITY);
  break;
case MINIMAL:// Replace NaNs with -INFs
  work = replaceAndSlice(values, begin, length, Double.NaN, Double.NEGATIVE_INFINITY);
  break;
case REMOVED:// Drop NaNs from data

代码示例来源:origin: io.virtdata/virtdata-lib-realer

switch (nanStrategy) {
case MAXIMAL:// Replace NaNs with +INFs
  work = replaceAndSlice(values, begin, length, Double.NaN, Double.POSITIVE_INFINITY);
  break;
case MINIMAL:// Replace NaNs with -INFs
  work = replaceAndSlice(values, begin, length, Double.NaN, Double.NEGATIVE_INFINITY);
  break;
case REMOVED:// Drop NaNs from data

相关文章