Main Content

nctpdf

非心度 t 確率密度関数

構文

Y = nctpdf(X,V,DELTA)

説明

Y = nctpdf(X,V,DELTA) は、V の対応する自由度と DELTA の非心度パラメーターを使用して、X の各値に対して非心度 t 確率密度関数を計算します。XVDELTA のベクトルまたは行列入力は同じサイズでなければならず、これは Y のサイズでもあります。XVDELTA がスカラー入力である場合は、他の入力と同じ次元をもつ定数行列に展開されます。

すべて折りたたむ

自由度 V = 10 と非心度パラメーター DELTA = 1 を使用して、非心 t 分布の確率密度関数を計算します。比較のため、同じ自由度をもつ t 分布の確率密度関数も計算します。

x = (-5:0.1:5)';
nct = nctpdf(x,10,1);
t = tpdf(x,10);

非心 t 分布の確率密度関数と t 分布の確率密度関数を、同じ Figure にプロットします。

plot(x,nct,'b-','LineWidth',2)
hold on
plot(x,t,'g--','LineWidth',2)
legend('nct','t')

Figure contains an axes object. The axes object contains 2 objects of type line. These objects represent nct, t.

参考文献

[1] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993, pp. 147–148.

[2] Johnson, N., and S. Kotz. Distributions in Statistics: Continuous Univariate Distributions-2. Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 201–219.

拡張機能

C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。

バージョン履歴

R2006a より前に導入

参考

| | | |

トピック