VPDetectorBinning WhichBin Method (Double, Int32, Double, Double)Virtual Photonics - VTS Library
Virtual Photonics
WhichBin determines which uniform bin "value" is in. If data is beyond last bin, the last bin is returned. If the data is smaller than first bin, the first bin is returned. This assumes bins are contiguous.

Namespace: Vts.MonteCarlo.Helpers
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public static int WhichBin(
	double value,
	int numberOfBins,
	double binSize,
	double binStart
)

Return Value

Type: OnlineInt32
See Also