6.7.12 MapToMap

6.7.12.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.12.2 Necessary file

No files are required.

6.7.12.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.12.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.100: Parameter list of MapToMap 

Parameter name

type

Default value

Unit

Description

METHOD_COMPLEX_TO_FLOAT

string 

magnitude

 

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.

METHOD_FLOAT_TO_COMPLEX

string 

zero

 

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 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. Setting the value to true outputs the conversion status to the standard output. The default value is false.

6.7.12.5 Details of the node

Table 6.101: Conversion table of MapToMap 

INPUT

OUTPUT

Parameter to use

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

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

METHOD_FLOAT_TO_COMPLEX

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> $>$