VF_selected_meanVD_selected_meanVE_selected_mean
FunctionMean 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/Delphiuses VFstd;
function VF_selected_mean( var nsel:UIntSize; X:fVector; size:UIntSize; XMin, XMax:Single ): Single;
DescriptionThose 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).
Error handlingnone
Return valueMean of the selected vector elements
See alsoVF_mean

VectorLib Table of Contents  OptiVec home