Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://xmm.vilspa.esa.es/sas/7.1.0/doc/ssclib/node11.html
Дата изменения: Mon Jul 9 01:26:53 2007 Дата индексирования: Sat Dec 22 08:43:56 2007 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п |
function getBinNumber(xBinEdges, x) result(binNum) real(single), intent(in) :: xBinEdges(:), x integer(int32) :: binNum end function
In a commonly encountered situation, one has a set of bins defined by a vector of bin edges xBinEdges, plus a real number x, and it is desired to know into which bin x falls. The present function accomplishes this calculation and returns the index of the bin. The bin edges should occur in increasing order, with no two values the same, but they don't have to be equidistant. The returned value obeys in general the rule
However note the following limiting or pathological cases: