This node converts Matrix<complex<float> > type multichannel complex spectra into the real power/amplitude spectra.
No files are required.
When to use
This node is used to convert complex spectra input as Matrix<complex<float> > type into real power/amplitude spectra. When inputs are of Map<int, ObjectRef> type, use the PowerCalcForMap node.
Typical connection
Figure 6.108 shows an example of the usage of a PowerCalcForMatrix node. A Matrix<complex<float> > type complex spectrum obtained from the MultiFFT node is converted into a Matrix<float> type power spectrum and input to the BGNEstimator node.
Parameter name |
Type |
Default value |
Unit |
Description |
POWER_TYPE |
POW |
Selection of power/amplitude spectra |
Input
: Matrix<complex<float> > type. A matrix with each element as a complex number.
Output
: Matrix<float> type. A real matrix consisting of power/absolute values of each element of the input.
Parameter
: string type. Selection of power (POW) or amplitude (MAG) spectra for the output.
The real matrix Ni,j of the output of the input complex matrix Mi,j (i,j indicating the rows and columns of the index, respectively) can be obtained as follows.
Ni,j | = | Mi,jM∗i,j (if POWER\_ TYPE=POW), | |||
Ni,j | = | abs(Mi,j) (if POWER\_ TYPE=MAG), |
Here, M∗i,j indicates the complex conjugate of Mi,j.