## org.autoplot.AutoRangeUtil

## AutoRangeUtil( )

## autoRange

autoRange( QDataSet hist, QDataSet ds, java.util.Map properties ) → org.autoplot.AutoRangeUtil.AutoRangeDescriptor

this is a copy of the other autorange, lacking some of its hacks. TODO: why? This is not used.

### Parameters

hist - a QDataSet
ds - a QDataSet
properties - a java.util.Map

### Returns:

an org.autoplot.AutoRangeUtil.AutoRangeDescriptor

### See Also:

autoRange(QDataSet, java.util.Map, boolean)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## autoRange

autoRange( QDataSet ds, java.util.Map properties ) → org.autoplot.AutoRangeUtil.AutoRangeDescriptor

Autorange using the dataset properties

### Parameters

ds - the dataset, a non-bundle, to be autoranged.
properties - Additional constraints for properties, such as SCALE_TYPE

### Returns:

the range.

### See Also:

autoRange(QDataSet, java.util.Map, boolean)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## autoRange

autoRange( QDataSet ds, java.util.Map properties, boolean ignoreDsProps ) → org.autoplot.AutoRangeUtil.AutoRangeDescriptor

This early implementation of autoRange calculates the range of the data, then locates the median to establish a linear or log scale type. Very early on it tried to establish a robust range as well that would exclude outliers. This should be rewritten to use the recently-implemented AutoHistogram, which does an efficient, self-configuring, one-pass histogram of the data that more effectively identifies the data range and outliers. TODO: This needs to be reworked. https://sourceforge.net/p/autoplot/bugs/1318/

### Parameters

ds - The dataset, a non-bundle, to be autoranged.
properties - Additional constraints for properties, such as SCALE_TYPE
ignoreDsProps - Don't check ds for TYPICAL_MIN and SCALE_TYPE. MONOTONIC is never ignored.

### Returns:

the range.

### See Also:

autoRange(QDataSet, java.util.Map)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## bounds

bounds( QDataSet dataSet, org.autoplot.RenderType renderType ) → QDataSet

return the bounding qube for the given render type. This was stolen from Test022.

### Parameters

dataSet - a QDataSet
renderType - a RenderType

### Returns:

bounding cube[3,2]
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## commonRange

commonRange( java.util.List adss ) → org.autoplot.AutoRangeUtil.AutoRangeDescriptor

for a group of autoranges, return a suitable range for all. For example, if any are non-log, then the result is non-log. The range will be the union of all ranges.

### Parameters

adss - list of autoranges

### Returns:

common autorange.
[search for examples] [view on GitHub] [view on old javadoc] [view source]