File Exchange

image thumbnail

Moments of a function

version 1.0.0.0 (1.37 KB) by Adam Wyatt
Generates the nth order moment of a function.

1 Download

Updated 20 Jul 2007

View License

Computes the nth moment mean of a function (needs more implentation).

m = moment(x, y, n)

m = nth moment of y
x = domain
y = data
n = nth moment == 1 by default

m = int(x^n * y) / int(y)

where int is integral over all x integral is calculated using trapezium rule

Comments and Ratings (1)

Asem Aji

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux