de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.isFalse()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(10.2k)|赞(0)|评价(0)|浏览(163)

本文整理了Java中de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.isFalse()方法的一些代码示例,展示了Flag.isFalse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flag.isFalse()方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag
类名称:Flag
方法名:isFalse

Flag.isFalse介绍

[英]Shorthand for isDefined() && getValue() == false
[中]isDefined()&&getValue()==false的简写形式

代码示例

代码示例来源:origin: elki-project/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 DoubleParameter alphaP = new DoubleParameter(ClusterHullVisualization.Parameterizer.ALPHA_ID, Double.POSITIVE_INFINITY);
 if(config.grab(alphaP)) {
  alpha = alphaP.doubleValue();
 }
 Flag bendP = new Flag(STRAIGHT_ID);
 if(config.grab(bendP)) {
  bend = bendP.isFalse();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-batik-visualization

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 DoubleParameter alphaP = new DoubleParameter(ClusterHullVisualization.Parameterizer.ALPHA_ID, Double.POSITIVE_INFINITY);
 if(config.grab(alphaP)) {
  alpha = alphaP.doubleValue();
 }
 Flag bendP = new Flag(STRAIGHT_ID);
 if(config.grab(bendP)) {
  bend = bendP.isFalse();
 }
}

代码示例来源:origin: elki-project/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<NoiseHandling>(NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<NoiseHandling>(NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<NoiseHandling>(NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 ObjectParameter<DistanceFunction<? super O>> distP = new ObjectParameter<>(DISTANCE_ID, DistanceFunction.class, EuclideanDistanceFunction.class);
 if(config.grab(distP)) {
  distance = distP.instantiateClass(config);
 }
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<>(NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 ObjectParameter<NumberVectorDistanceFunction<?>> distanceFunctionP = new ObjectParameter<>(EvaluateSilhouette.Parameterizer.DISTANCE_ID, NumberVectorDistanceFunction.class, EuclideanDistanceFunction.class);
 if(config.grab(distanceFunctionP)) {
  distance = distanceFunctionP.instantiateClass(config);
 }
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<NoiseHandling>(EvaluateSilhouette.Parameterizer.NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(EvaluateSilhouette.Parameterizer.NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: elki-project/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 ObjectParameter<NumberVectorDistanceFunction<?>> distanceFunctionP = new ObjectParameter<>(EvaluateSilhouette.Parameterizer.DISTANCE_ID, NumberVectorDistanceFunction.class, EuclideanDistanceFunction.class);
 if(config.grab(distanceFunctionP)) {
  distance = distanceFunctionP.instantiateClass(config);
 }
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<NoiseHandling>(EvaluateSilhouette.Parameterizer.NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(EvaluateSilhouette.Parameterizer.NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: elki-project/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 ObjectParameter<DistanceFunction<? super O>> distP = new ObjectParameter<>(DISTANCE_ID, DistanceFunction.class, EuclideanDistanceFunction.class);
 if(config.grab(distP)) {
  distance = distP.instantiateClass(config);
 }
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<>(NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 ObjectParameter<DistanceFunction<? super O>> distP = new ObjectParameter<>(DISTANCE_ID, DistanceFunction.class, EuclideanDistanceFunction.class);
 if(config.grab(distP)) {
  distance = distP.instantiateClass(config);
 }
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<>(NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 ObjectParameter<NumberVectorDistanceFunction<?>> distanceFunctionP = new ObjectParameter<>(EvaluateSilhouette.Parameterizer.DISTANCE_ID, NumberVectorDistanceFunction.class, EuclideanDistanceFunction.class);
 if(config.grab(distanceFunctionP)) {
  distance = distanceFunctionP.instantiateClass(config);
 }
 EnumParameter<NoiseHandling> noiseP = new EnumParameter<NoiseHandling>(EvaluateSilhouette.Parameterizer.NOISE_ID, NoiseHandling.class, NoiseHandling.TREAT_NOISE_AS_SINGLETONS);
 if(config.grab(noiseP)) {
  noiseOption = noiseP.getValue();
 }
 if(noiseOption == NoiseHandling.IGNORE_NOISE) {
  Flag penalizeP = new Flag(EvaluateSilhouette.Parameterizer.NO_PENALIZE_ID);
  if(config.grab(penalizeP)) {
   penalize = penalizeP.isFalse();
  }
 }
}

代码示例来源:origin: elki-project/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 IntParameter numsamplesP = new IntParameter(NUMSAMPLES_ID, 5) //
   .addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT);
 if(config.grab(numsamplesP)) {
  numsamples = numsamplesP.intValue();
 }
 // Default sample size suggested by Kaufman and Rousseeuw
 DoubleParameter samplingP = new DoubleParameter(SAMPLESIZE_ID, 40 + 2 * k) //
   .addConstraint(CommonConstraints.GREATER_THAN_ZERO_DOUBLE);
 if(config.grab(samplingP)) {
  sampling = samplingP.doubleValue();
 }
 Flag nokeepmedF = new Flag(NOKEEPMED_ID);
 if(numsamples != 1 && config.grab(nokeepmedF)) {
  keepmed = nokeepmedF.isFalse();
 }
 RandomParameter randomP = new RandomParameter(RANDOM_ID);
 if(config.grab(randomP)) {
  random = randomP.getValue();
 }
}

代码示例来源:origin: elki-project/elki

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 IntParameter numsamplesP = new IntParameter(NUMSAMPLES_ID, 5) //
   .addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT);
 if(config.grab(numsamplesP)) {
  numsamples = numsamplesP.intValue();
 }
 // Larger sample size, used by Schubert and Rousseeuw, 2019
 DoubleParameter samplingP = new DoubleParameter(SAMPLESIZE_ID, 80 + 4 * k) //
   .addConstraint(CommonConstraints.GREATER_THAN_ZERO_DOUBLE);
 if(config.grab(samplingP)) {
  sampling = samplingP.doubleValue();
 }
 Flag nokeepmedF = new Flag(NOKEEPMED_ID);
 if(numsamples != 1 && config.grab(nokeepmedF)) {
  keepmed = nokeepmedF.isFalse();
 }
 RandomParameter randomP = new RandomParameter(RANDOM_ID);
 if(config.grab(randomP)) {
  random = randomP.getValue();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 IntParameter numsamplesP = new IntParameter(NUMSAMPLES_ID, 5) //
   .addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT);
 if(config.grab(numsamplesP)) {
  numsamples = numsamplesP.intValue();
 }
 // Larger sample size, used by Schubert and Rousseeuw, 2019
 DoubleParameter samplingP = new DoubleParameter(SAMPLESIZE_ID, 80 + 4. * k) //
   .addConstraint(CommonConstraints.GREATER_THAN_ZERO_DOUBLE);
 if(config.grab(samplingP)) {
  sampling = samplingP.doubleValue();
 }
 Flag nokeepmedF = new Flag(NOKEEPMED_ID);
 if(numsamples != 1 && config.grab(nokeepmedF)) {
  keepmed = nokeepmedF.isFalse();
 }
 RandomParameter randomP = new RandomParameter(RANDOM_ID);
 if(config.grab(randomP)) {
  random = randomP.getValue();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering

@Override
protected void makeOptions(Parameterization config) {
 super.makeOptions(config);
 IntParameter numsamplesP = new IntParameter(NUMSAMPLES_ID, 5) //
   .addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT);
 if(config.grab(numsamplesP)) {
  numsamples = numsamplesP.intValue();
 }
 // Default sample size suggested by Kaufman and Rousseeuw
 DoubleParameter samplingP = new DoubleParameter(SAMPLESIZE_ID, 40 + 2 * k) //
   .addConstraint(CommonConstraints.GREATER_THAN_ZERO_DOUBLE);
 if(config.grab(samplingP)) {
  sampling = samplingP.doubleValue();
 }
 Flag nokeepmedF = new Flag(NOKEEPMED_ID);
 if(numsamples != 1 && config.grab(nokeepmedF)) {
  keepmed = nokeepmedF.isFalse();
 }
 RandomParameter randomP = new RandomParameter(RANDOM_ID);
 if(config.grab(randomP)) {
  random = randomP.getValue();
 }
}

相关文章