本文整理汇总了Java中org.apache.commons.math3.stat.ranking.TiesStrategy类的典型用法代码示例。如果您正苦于以下问题:Java TiesStrategy类的具体用法?Java TiesStrategy怎么用?Java TiesStrategy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TiesStrategy类属于org.apache.commons.math3.stat.ranking包,在下文中一共展示了TiesStrategy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: rank
import org.apache.commons.math3.stat.ranking.TiesStrategy; //导入依赖的package包/类
/**
* Returns the rank array for the values specified
* @param values the values to rank
* @return the ranks of input array
*/
static double[] rank(double[] values) {
final NaNStrategy nanStrategy = (NaNStrategy)optionsMap.get(NaNStrategy.class).get(DataFrameOptions.getNanStrategy());
final TiesStrategy tieStrategy = (TiesStrategy)optionsMap.get(TiesStrategy.class).get(DataFrameOptions.getTieStrategy());
if (nanStrategy == null) throw new DataFrameException("Unsupported NaN strategy specified: " + DataFrameOptions.getNanStrategy());
if (tieStrategy == null) throw new DataFrameException("Unsupported tie strategy specified: " + DataFrameOptions.getTieStrategy());
final NaturalRanking ranking = new NaturalRanking(nanStrategy, tieStrategy);
return ranking.rank(values);
}
开发者ID:zavtech,项目名称:morpheus-core,代码行数:14,代码来源:XDataFrameRank.java
示例2: WilcoxonSignedRankTest
import org.apache.commons.math3.stat.ranking.TiesStrategy; //导入依赖的package包/类
/**
* Create a test instance where NaN's are left in place and ties get
* the average of applicable ranks. Use this unless you are very sure
* of what you are doing.
*/
public WilcoxonSignedRankTest() {
naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
TiesStrategy.AVERAGE);
}
开发者ID:biocompibens,项目名称:SME,代码行数:10,代码来源:WilcoxonSignedRankTest.java
示例3: MannWhitneyUTest
import org.apache.commons.math3.stat.ranking.TiesStrategy; //导入依赖的package包/类
/**
* Create a test instance using where NaN's are left in place and ties get
* the average of applicable ranks. Use this unless you are very sure of
* what you are doing.
*/
public MannWhitneyUTest() {
naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
TiesStrategy.AVERAGE);
}
开发者ID:biocompibens,项目名称:SME,代码行数:10,代码来源:MannWhitneyUTest.java
注:本文中的org.apache.commons.math3.stat.ranking.TiesStrategy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论