以前のリビジョンの文書です
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
====== ヒストグラムの装飾 ======
----
===== スケールする =====
<code c_mac>
hist->Scale(2.5); //2.5倍に(縦に)スケールする
</code>
* hist1 , hist2 , hist3 , ... とあって、hist1 のエントリー数でスケールしたい(規格化したい)ときは以下のようにすればよい(複数のヒストグラムの形を比べるときなど)
<code c_mac>
hist2->Scale(hist1->GetEntries()/hist2->GetEntries());
hist3->Scale(hist1->GetEntries()/hist3->GetEntries());
.
.
.
</code>
* Integralで規格化したいときは、同様にして以下のようになる。
<code c_mac>
hist2->Scale(hist1->Integral()/hist2->Integral());
hist3->Scale(hist1->Integral()/hist3->Integral());
.
.
.
</code>
<note tip>
GetEntries と Integral の違いは?
</note>
----