本文整理了Java中de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.getValue()
方法的一些代码示例,展示了Flag.getValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flag.getValue()
方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag
类名称:Flag
方法名:getValue
暂无
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
@Override
public String getValueAsString() {
return getValue().booleanValue() ? SET : NOT_SET;
}
代码示例来源:origin: elki-project/elki
/**
* Shorthand for {@code isDefined() && getValue() == true}
*
* @return true when defined and true.
*/
public boolean isTrue() {
return isDefined() && getValue().booleanValue();
}
代码示例来源:origin: elki-project/elki
/**
* Shorthand for {@code isDefined() && getValue() == false}
*
* @return true when defined and true.
*/
public boolean isFalse() {
return isDefined() && !getValue().booleanValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-core-util
/**
* Shorthand for {@code isDefined() && getValue() == true}
*
* @return true when defined and true.
*/
public boolean isTrue() {
return isDefined() && getValue().booleanValue();
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Shorthand for {@code isDefined() && getValue() == true}
*
* @return true when defined and true.
*/
public boolean isTrue() {
return isDefined() && getValue().booleanValue();
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Shorthand for {@code isDefined() && getValue() == false}
*
* @return true when defined and true.
*/
public boolean isFalse() {
return isDefined() && !getValue().booleanValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Convenience - add a Flag option directly.
*
* @param flag Flag to add, if set
*/
public void forwardOption(Flag flag) {
if(flag.isDefined() && flag.getValue().booleanValue()) {
addFlag(flag.getOptionID());
}
}
代码示例来源:origin: elki-project/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
final Flag flag = new Flag(INVERT_ID);
if(config.grab(flag)) {
invert = flag.getValue();
}
}
代码示例来源:origin: elki-project/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
Flag normalizeF = new Flag(NORMALIZE_ID);
if(config.grab(normalizeF)) {
normalize = normalizeF.getValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-outlier
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
final Flag flag = new Flag(INVERT_ID);
if(config.grab(flag)) {
invert = flag.getValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-outlier
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
Flag normalizeF = new Flag(NORMALIZE_ID);
if(config.grab(normalizeF)) {
normalize = normalizeF.getValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
Flag normalizeF = new Flag(NORMALIZE_ID);
if (config.grab(normalizeF)) {
normalize = normalizeF.getValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
final Flag flag = new Flag(INVERT_ID);
if(config.grab(flag)) {
invert = flag.getValue();
}
}
代码示例来源:origin: elki-project/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
final PatternParameter patternP = new PatternParameter(LABELFILTER_PATTERN_ID);
if(config.grab(patternP)) {
pattern = patternP.getValue();
}
final Flag invertedF = new Flag(LABELFILTER_PATTERN_INVERT_ID);
if(config.grab(invertedF)) {
inverted = invertedF.getValue().booleanValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
final PatternParameter patternP = new PatternParameter(LABELFILTER_PATTERN_ID);
if(config.grab(patternP)) {
pattern = patternP.getValue();
}
final Flag invertedF = new Flag(LABELFILTER_PATTERN_INVERT_ID);
if(config.grab(invertedF)) {
inverted = invertedF.getValue().booleanValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-input
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
final PatternParameter patternP = new PatternParameter(LABELFILTER_PATTERN_ID);
if(config.grab(patternP)) {
pattern = patternP.getValue();
}
final Flag invertedF = new Flag(LABELFILTER_PATTERN_INVERT_ID);
if(config.grab(invertedF)) {
inverted = invertedF.getValue().booleanValue();
}
}
代码示例来源:origin: elki-project/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
// Time parameter
final Flag timeF = new Flag(TIME_ID);
if(config.grab(timeF)) {
time = timeF.getValue();
}
// parameter algorithm
final ObjectListParameter<Algorithm> ALGORITHM_PARAM = new ObjectListParameter<>(ALGORITHM_ID, Algorithm.class);
if(config.grab(ALGORITHM_PARAM)) {
algorithms = ALGORITHM_PARAM.instantiateClasses(config);
}
}
代码示例来源:origin: elki-project/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
DoubleParameter rateP = new DoubleParameter(RATE_ID, 0.05) //
.addConstraint(CommonConstraints.GREATER_EQUAL_ZERO_DOUBLE);
if(config.grab(rateP)) {
rate = rateP.doubleValue();
}
Flag createNoiseCluster = new Flag(NOISE_FLAG_ID);
if(config.grab(createNoiseCluster)) {
noiseFlag = createNoiseCluster.getValue();
}
}
代码示例来源:origin: elki-project/elki
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
Flag multipleF = new Flag(MULTIPLE_ID);
if(config.grab(multipleF)) {
multiple = multipleF.getValue();
}
PatternParameter noisepatP = new PatternParameter(NOISE_ID) //
.setOptional(true);
if(config.grab(noisepatP)) {
noisepat = noisepatP.getValue();
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering
@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
DoubleParameter rateP = new DoubleParameter(RATE_ID, 0.05) //
.addConstraint(CommonConstraints.GREATER_EQUAL_ZERO_DOUBLE);
if(config.grab(rateP)) {
rate = rateP.doubleValue();
}
Flag createNoiseCluster = new Flag(NOISE_FLAG_ID);
if(config.grab(createNoiseCluster)) {
noiseFlag = createNoiseCluster.getValue();
}
}
内容来源于网络,如有侵权,请联系作者删除!