VF_localminimaVD_localminimaVE_localminima
FunctionFind the indices of local minima
Syntax C/C++#include <VFstd.h>
ui VF_localminima( uiVector Ind, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
ui vector<ui>::localminima( const vector<T>& Ind );
Pascal/Delphiuses VFstd;
function VF_localminima( Ind:uiVector; X:fVector; size:UIntSize ):UIntSize;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_localminima( ui *h_nFound, uiVector d_Ind, fVector d_X, ui size );
ui VFcu_localminima( uiVector h_Ind, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_localminima( var h_nFound:UIntSize; d_Ind:uiVector; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_localminima( h_Ind:uiVector; h_X:fVector; size:UIntSize ): UIntSize;
DescriptionThe indices of local minima in X are stored in Ind and the number of local minima is returned (this is the number of elements of Ind). A local minimum is defined as one element of X that is smaller than both its neighbours to the right and to the left. That means that the zero'th and the last element of X (which have only one neighbour) cannot be local minima. Also, if two adjacent elements are equal, none of them can be a local minimum.
Error handlingnone
Return valuenumber of local minima found
See alsoVF_minind,   VF_min,   VF_indpick,   VF_localmaxima

VectorLib Table of Contents  OptiVec home