示例#1
0
 @Override
 public double findCutoff() {
   if (cutoffStrategy == null) {
     return Double.NaN;
   }
   double cut = cutoffStrategy.findCutoff(this, getParams());
   updateCutoff(cut);
   return cut;
 }
示例#2
0
 private void init() {
   resultType =
       ClusteringType.parse(
           props.getObject(AlgParams.CLUSTERING_TYPE, ClusteringType.ROWS_CLUSTERING));
   cutoffStrategy = CutoffStrategyFactory.getInstance().getDefault();
   if (cutoffStrategy != null) {
     InternalEvaluatorFactory<E, Cluster<E>> ief = InternalEvaluatorFactory.getInstance();
     cutoffStrategy.setEvaluator(ief.getDefault());
   }
   noise = null;
 }
示例#3
0
 @Override
 public double findCutoff(CutoffStrategy strategy) {
   double cut = strategy.findCutoff(this, getParams());
   this.clustering = updateCutoff(cut);
   return cut;
 }