From: jeny hu on
Hi,

i'm a beginner in matlab.I need to create distribution function of a meixner distribution:
function y=meixner(x,a,b,d,m)
x=x(:);
n=length(x);
for k=1:n
y(k)=(2*cos(b/2))^(2*d)*exp(b*(x(k)'-m)./a)*abs(gamma(d+i*(x(k)-m)./a)).^2/(2*a*pi*gamma(2*d));
y=y(:);
end

and i don't know how.
could someone please help me?
thanks a lot
From: Matt J on
"jeny hu" <Yoggi(a)post.sk> wrote in message <hninma$k1$1(a)fred.mathworks.com>...

If you don't know how, what does the code you posted do?
From: jeny hu on
"Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <hnio3h$6bt$1(a)fred.mathworks.com>...
> "jeny hu" <Yoggi(a)post.sk> wrote in message <hninma$k1$1(a)fred.mathworks.com>...
>
> If you don't know how, what does the code you posted do?

the code creates a probability density function and i need to create a distribution function
From: Matt J on
"jeny hu" <Yoggi(a)post.sk> wrote in message <hniogl$c6p$1(a)fred.mathworks.com>...

> the code creates a probability density function and i need to create a distribution function
===============

help cumsum
From: jeny hu on
"Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <hniomr$eu4$1(a)fred.mathworks.com>...
> "jeny hu" <Yoggi(a)post.sk> wrote in message <hniogl$c6p$1(a)fred.mathworks.com>...
>
> > the code creates a probability density function and i need to create a distribution function
> ===============
>
> help cumsum
I need the cdf for statistical testing(kstest,kuiper test....) and i know the result(accept H0) and I've already tried cumsum but this ends with rejecting H0