Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【ROOT】さまざまな分布の累積分布(cumulative distribution function)

(2015年の過去記事)

ここにまとめられている↓
namespace ROOT::Math


gaussianのcdfが知りたい場合は、

double ROOT::Math::normal_cdf_c (double x, double sigma=1, double x0=0)
Complement of the cumulative distribution function of the normal (Gaussian) distribution (upper tail).

double ROOT::Math::normal_cdf (double x, double sigma=1, double x0=0)
Cumulative distribution function of the normal (Gaussian) distribution (lower tail).

正の無限大からxまでと、負の無限大からxまでの2種類用意されている
xは下限値(上限値)
sigma正規分布標準偏差
x0は正規分布の平均値
(一応ソースコードで確認)


ランキング参加中です

↓クリックしていただけると嬉しいです〜