ObjectParameter<EigenPairFilter> EIGENPAIR_FILTER_PARAM = new ObjectParameter<EigenPairFilter>(PCA_EIGENPAIR_FILTER, EigenPairFilter.class, PercentageEigenPairFilter.class);
if(config.grab(EIGENPAIR_FILTER_PARAM)) {
eigenPairFilter = EIGENPAIR_FILTER_PARAM.instantiateClass(config);
}
DoubleParameter BIG_PARAM = new DoubleParameter(BIG_ID, new GreaterConstraint(0), 1.0);
if(config.grab(BIG_PARAM)) {
big = BIG_PARAM.getValue();
}
DoubleParameter SMALL_PARAM = new DoubleParameter(SMALL_ID, new GreaterEqualConstraint(0), 0.0);
if(config.grab(SMALL_PARAM)) {
small = SMALL_PARAM.getValue();
}
// global constraint small <--> big
config.checkConstraint(new LessGlobalConstraint<Double>(SMALL_PARAM, BIG_PARAM));
}