inetsoft.graph.scale
Class LinearRange
java.lang.Object
inetsoft.graph.scale.AbstractScaleRange
inetsoft.graph.scale.LinearRange
- All Implemented Interfaces:
- ScaleRange, Serializable, Cloneable
public class LinearRange
- extends AbstractScaleRange
Calculate the range by taking the minimum and maximum of all data.
- See Also:
- Serialized Form
|
Method Summary |
double[] |
calculate(DataSet data,
String[] cols)
Calculate the range of values of the specified columns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearRange
public LinearRange()
calculate
public double[] calculate(DataSet data,
String[] cols)
- Description copied from interface:
ScaleRange
- Calculate the range of values of the specified columns.
- Parameters:
data - the dataset.cols - the numeric columns to find range values.
- Returns:
- an array of two values, minimum and maximum of the range.