Пример #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;
 }