Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/7.1.0/doc/ssclib/node18.html
Дата изменения: Mon Jul 9 01:26:54 2007
Дата индексирования: Sat Dec 22 08:44:01 2007
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п
Value at histogram fraction XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-3.29.3) [xmmsas_20070708_1801-7.1.0]

Median Array or vector scalar Array or vector array Home Index

Meta Index / Home Page / General-purpose array-processing utilities / Array or vector scalar

Value at histogram fraction

For $binFraction = 0.5$ this gives the same result as median(). The algorithm is as follows: the values in $vector$ or $array$ are sorted; that element index is identified which, expressed as a fraction of the total number of elements, comes nearest to $binFraction$; finally, the element which occurs at that index of the sorted list is returned.

If $binFraction$ is outside the range 0 to 1, the smallest or largest element, whichever is appropriate, is returned.

  interface valueAtHistoFraction
    real(single) function valueAtHistoFractionVector(vector, binFraction&
      , maskVector)

      real(single),  intent(in)           :: vector(:), binFraction
      logical(bool), intent(in), optional :: maskVector(:)
    end function valueAtHistoFractionVector

    real(single) function valueAtHistoFractionArray(array, binFraction&
      , maskArray)

      real(single),  intent(in)           :: array(:,:), binFraction
      logical(bool), intent(in), optional :: maskArray(:,:)
    end function valueAtHistoFractionArray
  end interface



XMM-Newton SOC/SSC -- 2007-07-08