org.apache.sis.math.Vector.doubleValues()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(78)

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

Vector.doubleValues介绍

[英]Copies all values in an array of double precision floating point numbers. This method is for inter-operability with APIs requiring an array of primitive type.

The default implementation invokes #doubleValue(int) for all indices from 0 inclusive to #size() exclusive. Subclasses may override with more efficient implementation.
[中]复制双精度浮点数数组中的所有值。此方法用于与需要基元类型数组的API的互操作性。
默认实现为从0到#size()exclusive的所有索引调用#doubleValue(int)。子类可以通过更高效的实现进行重写。

代码示例

代码示例来源:origin: apache/sis

/**
 * Creates the sequence as a floating point array.
 */
@Override
public double[] doubleValues() {
  if (increment(0).doubleValue() == 0) {
    final double[] array = new double[size()];
    Arrays.fill(array, doubleValue(0));
    return array;
  }
  return super.doubleValues();
}

代码示例来源:origin: org.apache.sis.core/sis-utility

/**
 * Creates the sequence as a floating point array.
 */
@Override
public double[] doubleValues() {
  if (increment(0).doubleValue() == 0) {
    final double[] array = new double[size()];
    Arrays.fill(array, doubleValue(0));
    return array;
  }
  return super.doubleValues();
}

代码示例来源:origin: apache/sis

return true;
} else {
  nonLinears.add(MathTransforms.interpolate(null, coordinates.read().doubleValues()));
  return false;
        return true;
      } else {
        nonLinears.add(MathTransforms.interpolate(null, data.doubleValues()));
        return false;

代码示例来源:origin: apache/sis

switch (Numbers.getEnumConstant(getElementType())) {
  case Numbers.DOUBLE: {
    array = doubleValues();
    break;

相关文章