以前のリビジョンの文書です
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/handler.php on line
1458
Warning: Declaration of syntax_plugin_note::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line
79
Warning: Declaration of syntax_plugin_note::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line
101
Warning: preg_match(): Compilation failed: invalid range in character class at offset 3120 in
/mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/lexer.php on line
118
A PCRE internal error occured. This might be caused by a faulty plugin
====== ヒストグラムのbin、境界上はどっちに入る? ======
ヒストグラムのbin IDは, ヒストグラムのbin数をnbinsとして
bin = 0; underflow bin
bin = 1; first bin with low-edge xlow INCLUDED
bin = nbins; last bin with upper-edge xup EXCLUDED
bin = nbins+1; overflow bin
のように振られる。
bin = i, (1<i<nbins)のときも、low-edgeを含み、upper-edgeを含まない。
例えば、
<code cpp>
TH1D *hist = new TH1D("hist","",10,0,10);
hist->Fill(1);
Int_t ibin = hist->FindBin(1);
</code>
とした場合、
* bin=1 : 0 ≦ x < 1, bin=2 : 1≦ x < 2 のようになる。
* Fillした1は以下の図のように、bin=2 : 1≦ x < 2 のbinに入る。
* ibinには2が返る
となる。
{{:ja:root:histbin.png?600|}}