weka.core.Instances.kthSmallestValue()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(139)

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

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;

相关文章

Instances类方法