Package de.gsi.dataset
Interface Histogram2D
-
- All Known Implementing Classes:
Histogram2
public interface Histogram2D- Author:
- rstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intfill(double x, double y)Increment bin with abscissa X, Y, and Z by 1.intfill(double x, double y, double w)Increment bin with abscissa X by with a weight w.intfindBin(double x, double y)intfindFirstBinAbove(double x, double y)
-
-
-
Method Detail
-
fill
int fill(double x, double y)Increment bin with abscissa X, Y, and Z by 1. if x is less than the low-edge of the first bin, the Underflow bin is incremented if x is equal to or greater than the upper edge of last bin, the Overflow bin is incremented The function returns the corresponding bin number which has its content incremented by 1- Parameters:
x- new value to be addedy- new value to be added- Returns:
- corresponding bin number which has its content incremented by 1
-
fill
int fill(double x, double y, double w)Increment bin with abscissa X by with a weight w. if x is less than the low-edge of the first bin, the Underflow bin is incremented if x is equal to or greater than the upper edge of last bin, the Overflow bin is incremented The function returns the corresponding bin number which has its content incremented by 1- Parameters:
x- new value to be addedy- new value to be addedw- weight- Returns:
- corresponding bin number which has its content incremented by 1
-
findBin
int findBin(double x, double y)- Parameters:
x- spatial real-valued coordinate in Xy- spatial real-valued coordinate in Y- Returns:
- bin index corresponding to spatial x and y coordinates
-
findFirstBinAbove
int findFirstBinAbove(double x, double y)- Parameters:
x- spatial real-valued coordinate in Xy- spatial real-valued coordinate in Y- Returns:
- bin index that is above the spatial x and y coordinates
-
-