如何在Java中对double值数组执行Math.round()?

时间:2017-03-05 14:17:26

标签: java

public static void formInputParameters(NeuralNetwork loadNet) {
    loadNet.setInput(0.583333333, 0.0, 0.333333333, 0.339622642, 0.251141553, 0.0, 1.0, 0.786259542, 0.0, 0.0, 0.5, 0.333333, 0.0);
    loadNet.calculate();
    double[] networkOutput = loadNet.getOutput();
    System.out.println(" Output: " + Arrays.toString(networkOutput));
}

如何在Java中对double值数组执行Math.round()

1 个答案:

答案 0 :(得分:1)

经典方式我猜...

.accdb