Package uk.ac.starlink.ttools.plot
Class DataBounds
java.lang.Object
uk.ac.starlink.ttools.plot.DataBounds
Encapsulates what is known about the ranges along each axis of a data set.
- Since:
- 2 May 2008
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of points in the data set.int[]
Returns an array giving the number of points per subset in the data set.Range[]
Returns the array of data ranges, one for each axis.
-
Constructor Details
-
DataBounds
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 Details
-
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
-