double scaleLowerBound = Double.MIN_VALUE;
double scaleUpperBound = Double.MAX_VALUE;
// At Positive Scales lowerBound is 0, upperBound has to be fetched
if (scale instanceof PositiveIntegerScale) {
PositiveIntegerScale s = (PositiveIntegerScale) scale;
scaleLowerBound = 0;
scaleUpperBound = s.getUpperBound();
}
if (scale instanceof PositiveFloatScale) {
PositiveFloatScale s = (PositiveFloatScale) scale;
scaleLowerBound = 0;
scaleUpperBound = s.getUpperBound();
}
// At Range Scales lowerBound and upperBound have to be fetched
if (scale instanceof IntRangeScale) {
IntRangeScale s = (IntRangeScale) scale;
scaleLowerBound = s.getLowerBound();
scaleUpperBound = s.getUpperBound();
}
if (scale instanceof FloatRangeScale) {
FloatRangeScale s = (FloatRangeScale) scale;
scaleLowerBound = s.getLowerBound();
scaleUpperBound = s.getUpperBound();
}
// get Transformer thresholds
NumericTransformer nt = (NumericTransformer) transformer;
double transformerT1 = nt.getThreshold1();