本文整理了Java中weka.core.Utils.round()
方法的一些代码示例,展示了Utils.round()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.round()
方法的具体详情如下:
包路径:weka.core.Utils
类名称:Utils
方法名:round
[英]Rounds a double to the next nearest integer value. The JDK version of it doesn't work properly.
[中]
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
System.out.println("log2(4.6): " + Utils.log2(4.6));
System.out.println("5 * log(5): " + Utils.xlogx(5));
System.out.println("5.5 rounded: " + Utils.round(5.5));
System.out.println("5.55555 rounded to 2 decimal places: "
+ Utils.roundDouble(5.55555, 2));
代码示例来源:origin: Waikato/weka-trunk
int trainSize = Utils.round(runInstances.numInstances()
* m_TrainPercent / 100);
int testSize = runInstances.numInstances() - trainSize;
代码示例来源:origin: Waikato/weka-trunk
System.out.println("log2(4.6): " + Utils.log2(4.6));
System.out.println("5 * log(5): " + Utils.xlogx(5));
System.out.println("5.5 rounded: " + Utils.round(5.5));
System.out.println("5.55555 rounded to 2 decimal places: "
+ Utils.roundDouble(5.55555, 2));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
int trainSize = Utils.round(runInstances.numInstances()
* m_TrainPercent / 100);
int testSize = runInstances.numInstances() - trainSize;
内容来源于网络,如有侵权,请联系作者删除!