VPDetectorBinning WhichBinExclusive Method Virtual Photonics - VTS Library
Virtual Photonics
WhichBin determines which uniform bin "value" is in. If data is beyond last bin, it is not binned and -1 is returned If the data is smaller than first bin, it is not binned and -1 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 WhichBinExclusive(
	double value,
	int numberOfBins,
	double binSize,
	double binStart
)

Return Value

Type: OnlineInt32
See Also