<< CL_legendrePoly Math CL_norm >>

CelestLab >> Math > CL_mean

CL_mean

Mean value based on quadrature

Calling Sequence

xmean = CL_mean(x, meth [, rc])

Description

Parameters

x:

Matrix of real values (PxN)

meth:

(string) Method used: "trap", "simp", "boole" (1x1)

rc:

(string, optional) Direction: "r": mean computed on rows or "c": mean computed on columns. For default, see above.

xmean:

Mean value (Px1) or (1xN)

Authors

Examples

t = linspace(0, %pi, 101);
CL_mean(sin(t), "trap")  - 2/%pi
CL_mean(sin(t), "simp")  - 2/%pi
CL_mean(sin(t), "boole") - 2/%pi

Report an issue
<< CL_legendrePoly Math CL_norm >>