+
+ public float getMax()
+ {
+ // regenerate the original values passed in to the constructor
+ return (tolow) ? base : (base + range);
+ }
+
+ public float getMin()
+ {
+ // regenerate the original value passed in to the constructor
+ return (tolow) ? (base + range) : base;
+ }
+
+ public boolean isAutoScale()
+ {
+ return autoScale;
+ }
+
+ public void setAutoScaled(boolean autoscale)
+ {
+ autoScale = autoscale;
+ }
+
+ /**
+ * update the base and range appropriatly for the given minmax range
+ *
+ * @param a
+ * float[] {min,max} array containing minmax range for the associated
+ * score values
+ */
+ public void updateBounds(float min, float max)
+ {
+ if (max < min)
+ {
+ base = max;
+ range = min - max;
+ tolow = true;
+ }
+ else
+ {
+ base = min;
+ range = max - min;
+ tolow = false;
+ }
+ }