averf.mBack to Contents<< Prev |  Next >> 

averf
Average of vector/scalar fields

Description
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, display the average field AF with 
showvec or showscal. 
 
Examples: 
   showvec(averf(loadset)); 
   [af rms fr]=averf(vec2scal(loadset,'uy')); showscal(fr,[0 1]); 
 
F. Moisy 
Revision: 1.10,  Date: 2005/10/11. 
 
See Also
spaverf, subaverf. 

 Previous: addnoisefNext: batchvec 

Help file generated by m2html 1.06