@Override public double findCutoff() { if (cutoffStrategy == null) { return Double.NaN; } double cut = cutoffStrategy.findCutoff(this, getParams()); updateCutoff(cut); return cut; }
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; }
@Override public double findCutoff(CutoffStrategy strategy) { double cut = strategy.findCutoff(this, getParams()); this.clustering = updateCutoff(cut); return cut; }