@Override
protected void makeOptions(Parameterization config) {
super.makeOptions(config);
// flag absolute
boolean absolute = false;
Flag absoluteF = new Flag(LimitEigenPairFilter.EIGENPAIR_FILTER_ABSOLUTE);
if(config.grab(absoluteF)) {
absolute = absoluteF.getValue();
}
// Parameter delta
double delta = 0.0;
DoubleParameter deltaP = new DoubleParameter(LimitEigenPairFilter.EIGENPAIR_FILTER_DELTA, new GreaterEqualConstraint(0), DEFAULT_DELTA);
if(config.grab(deltaP)) {
delta = deltaP.getValue();
}
// Absolute flag doesn't have a sensible default value for delta.
if(absolute && deltaP.tookDefaultValue()) {
config.reportError(new WrongParameterValueException("Illegal parameter setting: " + "Flag " + absoluteF.getName() + " is set, " + "but no value for " + deltaP.getName() + " is specified."));
}
// if (optionHandler.isSet(DELTA_P)) {
// delta = (Double) optionHandler.getOptionValue(DELTA_P);
// try {