Eugen_E
Full Member level 6
matlab moments
Hello,
The moments are defined by: mk=Integral((t^k)•f(t))dt -that is in the continous case.
I need to compute the moments for a discrete sequence (vector) in Matlab - x(1:n), for a wavelet application.
I dont think I should do something like, for example:
k=2;
t=1:n;
m2=sum((t.^k).*x), because the index is not directly related to the time variable.
The statistic moment function, computing E(X^k), provided in Matlab is ok to use?
How can I calculate this?
Hello,
The moments are defined by: mk=Integral((t^k)•f(t))dt -that is in the continous case.
I need to compute the moments for a discrete sequence (vector) in Matlab - x(1:n), for a wavelet application.
I dont think I should do something like, for example:
k=2;
t=1:n;
m2=sum((t.^k).*x), because the index is not directly related to the time variable.
The statistic moment function, computing E(X^k), provided in Matlab is ok to use?
How can I calculate this?