VF_integralC | VD_integralC | VE_integralC |
|
Function | Integral of an array plotted over an equally-spaced abscissa. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_integralC( fVector X, ui size, float DeltaT ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::integralC( T DeltaT ); |
Pascal/Delphi | uses VFstd;
function VF_integralC( X:fVector; size:UIntSize; DeltaT:Single ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_integralC( float *h_RetVal, fVector X, ui size, float C );
int cusdVF_integralC( float *d_RetVal, fVector X, ui size, float *d_C );
float VFcu_integralC( fVector X, ui size, float C );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_integralC( var h_RetVal:Single; d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_integralC( d_RetVal:PSingle; d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_integralC( h_X:fVector; size:UIntSize; C:Single ): Single;
|
|
Description | The vector X is assumed to be a function of a variable t; the t values themselves are equally spaced, so that only the spacing DeltaT is needed. The area under X, i.e. the integral of X over t from t0 to tsize−1 is calculated. If not only the value of the integral is of interest, but a point-by-point integration has to be performed, VF_runintegralC should be used. |
|
|
Return value | The value of the integral is returned. |
|
|