Is there any function generating random variable X with a standard normal
density conditional on a range (a,b] where 0
Le 23/01/2016 10:34, eddydde a écrit :
that's not the solution to my problem:
the last two function calls in which i use xa(1x11) as first argument and
three parameters (a1.a2,a3 or d.aa(1,:)) !
here i get an 11x1 result with the wrong(?) three parameters
When xa is a vector, T is a vector
that's not the solution to my problem:
the last two function calls in which i use xa(1x11) as first argument and
three parameters (a1.a2,a3 or d.aa(1,:)) !
here i get an 11x1 result with the wrong(?) three parameters
Ed.
--
View this message in context:
You also have this distribution (and many more) in the atoms package
https://forge.scilab.org/index.php/p/distfun/
S.
Le 23/01/2016 13:25, fujimoto2005 a écrit :
Is there any function generating random variable X with a standard normal
density conditional on a range (a,b] where 0
Let X be a m×n matrix and f(i) is a column index for the ith row.
I want to get a m×1 vector y where y(i)=X(i,f(i)) for 1<=i<=m.
Is there any method to get y other than the following code?
for i=1:m
y(i)=X(i,f(i));
end
Best regards
--
View this message in context:
Hello,
You will find the Matlab code for the "trandn" function there :
http://www.mathworks.com/matlabcentral/fileexchange/53180-truncated-normal-generator/content/trandn.m
hth
S.
Le 23/01/2016 13:25, fujimoto2005 a écrit :
Is there any function generating random variable X with a standard