MATLAB has the function ‘nctpdf’ function to compute the non-central t-distribution. What would be the SciLab equivalent? Or how would you write Scilab coding to arrive at the non-central t-distribution? Heinz
Hello @heinznabielek
I thought it was in CASCI toolbox but, even if the function is listed, it is not implemented.
In fact, it is part of Stixbox, in a dependency.
The toolbox is called “distfun”
→ distfun_nctpdf(3,5,0.1)
ans = 0.0208059315949
BR
With an example
clc
clear
close(winsid())
tic()
x = linspace(-5,10,300);
nct = distfun_nctpdf(x,10,3);
t = distfun_tpdf(x,10);
disp(toc())
plot(x,nct,‘b’,‘LineWidth’,2)
plot(x,t,‘r’,‘LineWidth’,2)
legend(‘nct’,‘t’)
xgrid
With the assumption STIXBOX toolbox is loaded
Works! Thank you. Heinz