Matlab - moments calculation

Status
Not open for further replies.

Eugen_E

Full Member level 6
Joined
Nov 29, 2004
Messages
383
Helped
44
Reputation
86
Reaction score
11
Trophy points
1,298
Location
Romania
Activity points
2,862
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?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…