uk.ac.starlink.ttools.plot
Class DataBounds

java.lang.Object
  extended by uk.ac.starlink.ttools.plot.DataBounds

public class DataBounds
extends Object

Encapsulates what is known about the ranges along each axis of a data set.

Since:
2 May 2008
Author:
Mark Taylor

Constructor Summary
DataBounds(Range[] ranges, int npoint, int[] npoints)
          Constructor.
 
Method Summary
 int getPointCount()
          Returns the number of points in the data set.
 int[] getPointCounts()
          Returns an array giving the number of points per subset in the data set.
 Range[] getRanges()
          Returns the array of data ranges, one for each axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBounds

public DataBounds(Range[] ranges,
                  int npoint,
                  int[] npoints)
Constructor.

Parameters:
ranges - array of data ranges, one for each axis
npoint - number of points in the data set
npoints - array of per-subset point counts, one for each set
Method Detail

getRanges

public Range[] getRanges()
Returns the array of data ranges, one for each axis.

Returns:
data range array

getPointCount

public int getPointCount()
Returns the number of points in the data set.

Returns:
point count

getPointCounts

public int[] getPointCounts()
Returns an array giving the number of points per subset in the data set.

Returns:
nset-element array of point counts in each subset


Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.