CWO++library
0.32
|
Functions | |
void | CWO::Re () |
Taking only the real part of complex amplitude. | |
void | CWO::Im () |
Taking only the imaginary part of complex amplitude. | |
void | CWO::Conj () |
Calculating the complex conjugation of complex amplitude. | |
void | CWO::Intensity () |
Calculating the absolute square (light intensity) of complex amplitude. | |
void | CWO::Amp () |
Calculating the amplitude of complex amplitude. | |
void | CWO::Phase (float offset=0.0f) |
Calculating complex amplitude with the constant amplitude . | |
void | CWO::Arg (float scale=1.0f, float offset=0.0f) |
Calculating the argument of complex amplitude with real value from to . . | |
void | CWO::Expi () |
void | CWO::Arg2Cplx (float scale=1.0, float offset=0.0) |
void | CWO::Cart2Polar () |
void | CWO::Polar2Cart () |
void | CWO::ReIm (CWO &re, CWO &im) |
replace the real and imaginary parts. |
void CWO::Re | ( | ) |
void CWO::Im | ( | ) |
Taking only the imaginary part of complex amplitude.
@note
void CWO::Conj | ( | ) |
Calculating the complex conjugation of complex amplitude.
@note
void CWO::Intensity | ( | ) |
Calculating the absolute square (light intensity) of complex amplitude.
@note
void CWO::Amp | ( | ) |
Calculating the amplitude of complex amplitude.
@note
void CWO::Phase | ( | float | offset = 0.0f | ) |
Calculating complex amplitude with the constant amplitude .
@param offset : adjust the phase distribution @note
void CWO::Arg | ( | float | scale = 1.0f , |
float | offset = 0.0f |
||
) |
Calculating the argument of complex amplitude with real value from to .
.
@param scale : adjust scale, ex. if setting scale=1.0, the phase range is \f-$\pi\f to + \form#21. if setting scale=1/\f-2$\pi\f, the phase range is -0.5 to +0.5. @param offset : adjust the phase range, ex. if setting offset=CWO_PI, the phase range in the phase distribution is 0 to \form#13. @note
void CWO::Expi | ( | ) |
I do not recommend to use this function. I will abolish the function in future CWO++ library.
void CWO::Arg2Cplx | ( | float | scale = 1.0 , |
float | offset = 0.0 |
||
) |
Convering argument (real value) to complex amplitude.
Concreately, the following calculation is done.
@param offset : . @note
replace the real and imaginary parts.
@param re : @param im : @note CWO a @n