本文整理了Java中weka.core.Instances.kthSmallestValue()
方法的一些代码示例,展示了Instances.kthSmallestValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instances.kthSmallestValue()
方法的具体详情如下:
包路径:weka.core.Instances
类名称:Instances
方法名:kthSmallestValue
[英]Returns the kth-smallest attribute value of a numeric attribute. NOTE CHANGE: Missing values (NaN values) are now treated as Double.MAX_VALUE. Also, the order of the instances in the data is no longer affected.
[中]返回数值属性的第k个最小属性值。注意:缺少的值(NaN值)现在被视为双精度值。最大值。此外,数据中实例的顺序不再受影响。
代码示例来源:origin: com.googlecode.obvious/obviousx-weka
@Override
public double kthSmallestValue(Attribute att, int k) {
return super.kthSmallestValue(att, k);
}
代码示例来源:origin: com.googlecode.obvious/obviousx-weka
@Override
public double kthSmallestValue(int attIndex, int k) {
return super.kthSmallestValue(attIndex, k);
}
代码示例来源:origin: Waikato/weka-trunk
/**
* Returns the kth-smallest attribute value of a numeric attribute.
*
* @param att the Attribute object
* @param k the value of k
* @return the kth-smallest value
*/
public double kthSmallestValue(Attribute att, int k) {
return kthSmallestValue(att.index(), k);
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
/**
* Returns the kth-smallest attribute value of a numeric attribute.
*
* @param att the Attribute object
* @param k the value of k
* @return the kth-smallest value
*/
public double kthSmallestValue(Attribute att, int k) {
return kthSmallestValue(att.index(), k);
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
m_InitialPrediction = m_Data.kthSmallestValue(m_Data.classIndex(), m_Data.numInstances() / 2);
} else {
m_InitialPrediction = m_Data.meanOrMode(m_Data.classIndex());
代码示例来源:origin: Waikato/weka-trunk
.kthSmallestValue(m_Data.classIndex(), m_Data.numInstances() / 2);
} else {
m_InitialPrediction = m_Data.meanOrMode(m_Data.classIndex());
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
vals[j] = members.instance(0).value(j);
} else {
vals[j] = sortedMembers.kthSmallestValue(j, middle + 1);
if (dataIsEven) {
vals[j] = (vals[j] + sortedMembers.kthSmallestValue(j, middle + 2)) / 2;
代码示例来源:origin: Waikato/weka-trunk
vals[j] = members.instance(0).value(j);
} else {
vals[j] = sortedMembers.kthSmallestValue(j, middle + 1);
if (dataIsEven) {
vals[j] = (vals[j] + sortedMembers.kthSmallestValue(j, middle + 2)) / 2;
内容来源于网络,如有侵权,请联系作者删除!