AF = averf(F) returns the average of the vector/scalar fields F.
AF is a field of the same type as F, whose elements are the average
of the elements of the fields F.
Depending on the nature of the fields F, the field averf(F) is usually
called "Ensemble average", "Phase average", or "Time average".
By default, averf considers that the zero elements of F are erroneous,
and does not include them in the computations. If however you want to
force the zero elements to be included in the computations, specify
averf(F,'0').
[AF RMS FR] = averf(F,..) also returns the RMS field and the
fluctuation rate field of the vector/scalar fields F.
- RMS is a scalar field, whose elements are the rms of the elements
of the fields F.
- FR is a scalar field, whose elements are the local RMS normalized
by the local norm of AF.
If no output argument is specified, the average field AF is displayed.
Examples
v = loadvec('*.vc7');
showf(averf(v));
[af rms fr]=averf(vec2scal(v,'uy'));
showf(fr,'clim',[0 1]);
averf *.vc7 % shows the average of the fields matching *.vc7
See Also
smoothf, spaverf, subaverf, azaverf, phaseaverf
Published output in the Help browser
showdemo averf