| VF_selected_mean | VD_selected_mean | VE_selected_mean |
|
| Function | Mean of the elements of a one-dimensional distribution, falling into a specified interval |
|
| Syntax C/C++ | #include <VFstd.h>
float VF_selected_mean( ui *nsel, fVector X, ui size
float XMin, float XMax ); |
| C++ VecObj | #include <OptiVec.h>
T vector<T>::selected_mean( ui *nsel, T XMin, T XMax ); |
| Pascal/Delphi | uses VFstd;
function VF_selected_mean( var nsel:UIntSize; X:fVector; size:UIntSize; XMin, XMax:Single ): Single; |
|
| Description | Those elements of X are selected, which fall into the interval XMin <= Xi <= XMax.
Their mean is calculated, and the number of selected elements is stored at the address nsel. If this number is not needed, nsel may be passed to the function as NULL (C/C++) or nil (Pascal/Delphi). |
|
|
| Return value | Mean of the selected vector elements |
|
|