本文整理汇总了Java中edacc.model.ExperimentResult.getSeed方法的典型用法代码示例。如果您正苦于以下问题:Java ExperimentResult.getSeed方法的具体用法?Java ExperimentResult.getSeed怎么用?Java ExperimentResult.getSeed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edacc.model.ExperimentResult
的用法示例。
在下文中一共展示了ExperimentResult.getSeed方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mapResultsToClusters
import edacc.model.ExperimentResult; //导入方法依赖的package包/类
/**
* Maps the ExperimentResults of a given SolverConfiguration to the clusters their instance-seed-pairs
* belong to
*
* @param sc the config for which the results should be mapped
* @return An array containing Lists of ExperimentResults. Each position in the array corresponds to one
* cluster, e.g. array[5] would give you the list of Results for cluster 5.
*/
public List<ExperimentResult>[] mapResultsToClusters(SolverConfiguration sc){
LinkedList<ExperimentResult>[] resultClusterMap = new LinkedList[clusters.length];
for(int i=0; i<clusters.length; i++){
resultClusterMap[i] = new LinkedList<ExperimentResult>();
}
int clusterNr;
InstanceIdSeed idSeed;
for(ExperimentResult r : sc.getFinishedJobs()){
idSeed = new InstanceIdSeed(r.getInstanceId(), r.getSeed());
clusterNr = instanceClusterMap.get(idSeed);
resultClusterMap[clusterNr].add(r);
}
return resultClusterMap;
}
示例2: clusterOfInstance
import edacc.model.ExperimentResult; //导入方法依赖的package包/类
public int clusterOfInstance(ExperimentResult res) {
if(res == null)
return -1;
InstanceIdSeed inst = new InstanceIdSeed(res.getInstanceId(), res.getSeed());
for(int i=0; i<clusters.length; i++)
if(clusters[i].contains(inst))
return i;
return -1;
}
示例3: addData
import edacc.model.ExperimentResult; //导入方法依赖的package包/类
protected final void addData(SolverConfiguration sc){
List<ExperimentResult> resList = sc.getJobs();
for(ExperimentResult r : resList){
InstanceIdSeed inst =
new InstanceIdSeed(r.getInstanceId(), r.getSeed());
InstanceData id = data.get(inst);
id.addValue(r);
}
}