6.7.9 MapToMap

6.7.9.1 Outline of the node

Convert the data type of the ObjectRef of the Map<int, ObjectRef> given as the input; between the Map$<$int , Vector<float> $>$ type and the Map$<$int , Vector<complex<float> > $>$ type or between the Map$<$int , Matrix<float> $>$ type and the Map$<$int , Matrix<complex<float> > $>$ type.

6.7.9.2 Necessary file

No files are required.

6.7.9.3 Usage

When to use

This node is used to convert the data type of the ObjectRef of the Map<int, ObjectRef> given as the input; the Map$<$int , Vector<float> $>$ type to the Map$<$int , Vector<complex<float> > $>$ type, the Map$<$int , Vector<complex<float> > $>$ type to the Map$<$int , Vector<float> > type, the Map$<$int , Matrix<float> $>$ type to the Map$<$int , Matrix<complex<float> > $>$ type, or the Map$<$int , Matrix<complex<float> > $>$ type to the Map$<$int , Matrix<float> $>$ type.

6.7.9.4 Input-output and property of the node

Input

INPUT

: Map$<$int , Vector<float> $>$, Map$<$int , Vector<complex<float> > $>$, Map$<$int , Matrix<float> $>$, or Map$<$int , Matrix<complex<float> > $>$ of the Map<int, ObjectRef> type.

Output

OUTPUT

: Map$<$int , Vector<float> $>$, Map$<$int , Vector<complex<float> > $>$, Map$<$int , Matrix<float> $>$, or Map<int , Matrix<complex<float> > $>$ of the Map<int, ObjectRef> type.

Parameter

Table 6.91: Parameter list of MapToMap 

Parameter name

type

Default value

Unit

Description

METHOD_COMPLEX_TO_FLOAT

string 

magnitude

 

The method to convert complex to float . Select magnitude, real, or imaginary. Output the absolute value, the real part, and the imaginary part, which are of the complex number, respectively.

METHOD_FLOAT_TO_COMPLEX

string 

zero

 

The method to convert float to complex . Select zero or hilbert. For the imaginary part, output 0 or the absolute value of the real part after converted to complex.

DEBUG

bool 

false

 

Enable or disable to output the conversion status to standard output.

METHOD_COMPLEX_TO_FLOAT

: string type. The method to convert the Vector<complex<float> > type to the Vector<float> type or to convert the Matrix<complex<float> > type to the Matrix<float> type. Select magnitude, real, or imaginary. Output the absolute value, the real part, and the imaginary part, which are of the complex number, respectively. The default value is magnitude.

METHOD_FLOAT_TO_COMPLEX

: string type. The method to convert the Vector<float> type to the Vector<complex<float> > type or to convert the Matrix<float> type to the Matrix<complex<float> > type. Select zero or hilbert. For the imaginary part, output 0 by selecting zero or output the absolute value of the real part after converted to complex by selecting hilbert. The default value is zero.

DEBUG

: bool type. The default value is false. Setting the value to trueoutputs the conversion status to the standard output.

6.7.9.5 Details of the node

Table 6.92: Conversion table of MapToMap 

INPUT

OUTPUT

Parameter to use

Map$<$ int , Vector<float> $>$

Map$<$ int , Vector<complex<float> > $>$

METHOD_FLOAT_TO_COMPLEXCOMPLEX

Map$<$ int , Matrix<float> $>$

Map$<$ int , Matrix<complex<float> > $>$

 

Map$<$ int , Vector<complex<float> > $>$

Map$<$ int , Vector<float> $>$

METHOD_COMPLEX_TO_FLOAT

Map$<$ int , Matrix<complex<float> > $>$

Map$<$ int , Matrix<float> $>$