Package uk.ac.starlink.ttools.plot
Class DataBounds
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.DataBounds
-
public class DataBounds extends java.lang.Object
Encapsulates what is known about the ranges along each axis of a data set.- Since:
- 2 May 2008
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description DataBounds(Range[] ranges, int npoint, int[] npoints)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
DataBounds
public DataBounds(Range[] ranges, int npoint, int[] npoints)
Constructor.- Parameters:
ranges
- array of data ranges, one for each axisnpoint
- number of points in the data setnpoints
- 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
-
-