VF_meanwW | VD_meanwW | VE_meanwW |
VCF_meanwW | VCD_meanwW | VCE_meanwW |
|
Funktion | gewichteter Mittelwert |
|
Syntax C/C++ | #include <VFstd.h>
float VF_meanwW( fVector X, fVector Wt, ui size );
(analog VD_, VE_)
fComplex VCF_meanwW( cfVector X, fVector Wt, ui size );
(analog VCD_, VCE_) |
C++ VecObj | #include <OptiVec.h>
T vector<T>::meanwW( const vector<T>& Wt );
fComplex vector<complex<T>>::meanwW( const vector<T>& Wt ); |
Pascal/Delphi | uses VFstd;
function VF_meanwW( X, Wt:fVector; size:UIntSize ): Single;
(analog VD_, VE_)
procedure VCF_meanwW( var Mean:fComplex; X:cfVector; Wt:fVector; size:UIntSize );
(analog VCD_, VCE_) |
|
CUDA-Funktion C/C++ | #include <cudaVFstd.h>
int cudaVF_meanwW( float *h_RetVal, fVector d_X, fVector d_Wt, ui size );
int cusdVF_meanwW( float *d_RetVal, fVector d_X, fVector d_Wt, ui size );
float VFcu_meanwW( fVector h_X, fVector h_Wt, ui size );
|
CUDA-Funktion Pascal/Delphi | uses VFstd;
function cudaVF_meanwW( var h_RetVal:Single; d_X, d_Wt:fVector; size:UIntSize ): IntBool;
function cusdVF_meanwW( d_RetVal:PSingle; d_X, d_Wt:fVector; size:UIntSize ): IntBool;
function VFcu_meanwW( h_X, h_Wt:fVector; size:UIntSize ): Single;
|
|
Beschreibung | meanwW = (1 / Summe( Wti )) * Summe( Xi * Wti )
Man beachte, dass die Gewichte immer reell sind, auch in den komplexen Versionen. |
|
|
Rückgabewert | gewichtetes Mittel (außer komplexe Varianten in Pascal/Delphi). |
|
|