Class Pixel1dPlotter.BinArray
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter.BinArray
- Enclosing class:
Pixel1dPlotter<S extends Style>
Data object storing counts per pixel.
- Since:
- 20 Feb 2015
- Author:
- Mark Taylor
-
Method Summary
Modifier and TypeMethodDescriptionintgetBinIndex(int gx) Returns the bin index (index into this object'sbins_array) for a given pixel index.double[]getBins()Returns the array of pixel-width bins containing the counts accumulated by this object.intgetGraphicsCoord(int index) Returns the pixel index for a given bin index.
-
Method Details
-
getBins
public double[] getBins()Returns the array of pixel-width bins containing the counts accumulated by this object.- Returns:
- array of count values, one per pixel
-
getBinIndex
public int getBinIndex(int gx) Returns the bin index (index into this object'sbins_array) for a given pixel index.- Parameters:
gx- pixel index- Returns:
- bin index
-
getGraphicsCoord
public int getGraphicsCoord(int index) Returns the pixel index for a given bin index.- Parameters:
index- bin index- Returns:
- pixel index
-