Mean value based on quadrature
xmean = CL_mean(x, meth [, rc])
Computes the mean value by quadrature.
Assuming that the implicit (evenly spaced) abscissas are t1 .. tn, the mean value is defined by:
xmean = Integral from t1 to tn of x(t), divided by tn-t1 (integral approximated by quadrature).
The mean value can be computed on the rows (rc = "r") or on the columns (rc = "c"), exactly as the function "mean" does. If rc = "r", the result is a row vector. If rc = "c", the result is a column vector.
Three methods are available:
- trap: integral evaluated by trapezoidal method
- simp: integral evaluated by Simpson's rule
- boole: integral evaluated by Boole's rule
The required number of values depends on the method used:
- trap: any number
- simp: odd number (e.g. 1, 3, 5, 7...)
- boole: multiple of 4 plus 1 (e.g. 1, 5, 9, 13...)
Notes:
- rc can be omitted for a row vector or a column vector. The result is then a real number.
Matrix of real values (PxN)
(string) Method used: "trap", "simp", "boole" (1x1)
(string, optional) Direction: "r": mean computed on rows or "c": mean computed on columns. For default, see above.
Mean value (Px1) or (1xN)
CNES - DCT/SB