| VF_Lorentz | VD_Lorentz | VE_Lorentz |
|
| Function | Lorentzian lineshape function |
|
| Syntax C/C++ | #include <VFmath.h>
int VF_Lorentz( fVector Y, fVector X, ui size, float Wid, float Cent, float C ); |
| C++ VecObj | #include <OptiVec.h>
int vector<T>::Lorentz( const vector<T>& X, T Wid, const T& Cent, const T& C ); |
| Pascal/Delphi | uses VFmath;
function VF_Lorentz( Y, X:fVector; size:UInt; Wid, Cent, C:Single ): IntBool; |
|
| Description | Yi = C * Wid2 / ( (Xi - Cent)2 + Wid2 )
Wid = width of the resonance line
Cent = centre of the line
C is a scaling factor; at the center of the line (Xi=Cent), the amplitude Yi equals C. This is even true for a width of zero. |
|
| Error handling | This function should be error-proof. |
|
| Return value | always FALSE (0) |
|
|