Convert the Map<int, ObjectRef> type to the Vector<ObjectRef> type when the ObjectRef of the given Map<int, ObjectRef> is either the Vector<float> type or the Vector<complex<float> > type.
No files are required.
When to use
This node is used to convert the Map<int, ObjectRef> type to the Vector<ObjectRef> type when the ObjectRef of the given Map<int, ObjectRef> is either the Vector<float> type or the Vector<complex<float> > type. Taking a Map$<$ int , Vector<float> $>$ as the input will output a Vector<float> . Taking a Map$<$ int , Vector<complex<float> > $>$ as the input will output a Vector<complex<float> > .
Input
: Map$<$ int , Vector<float> $>$ or Map$<$ int , Vector<complex<float> > $>$ of the Map<int, ObjectRef> type.
Output
: any type. Note that the supported data types are the Vector<float> type and the Vector<complex<float> > type.
Parameter
Parameter name |
Type |
Default value |
Unit |
Description |
METHOD |
min_key |
The method to convert the Map<int, ObjectRef> type to the Vector<ObjectRef> type. Select min_key, max_key, average, or summation. |
||
DEBUG |
false |
Enable or disable to output the conversion status to standard output. |
: string type. The method to convert the Map<int, ObjectRef> type to the Vector<ObjectRef> type. Select min_key, max_key, average, or summation. Selecting min_key or max_key outputs a Vector<float> or a Vector<complex<float> > whose key is the minimum or the maximum among the input Map<int, ObjectRef> . Selecting average or summation outputs a Vector<float> or a Vector<complex<float> > whose values are the summation of or the average of the values of the input Map<int, ObjectRef> . The default value is min_key.
: bool type. Setting the value to true outputs the conversion status to the standard output. The default value is false.
INPUT |
METHOD |
OUTPUT |
|
min_key |
(1) |
||
Map$<$ int , Vector<float> $>$ |
max_key |
(2) |
|
average |
(3) |
||
summation |
(4) |
||
min_key |
|||
Map$<$ int , Vector<complex<float> > $>$ |
max_key |
||
average |
|||
summation |
$<$example$>$
INPUT: Three input values, each value consists of a key and a 3 element vector.
\[ \begin{tabular}{ccc} \{ 0, ~ $<$ 1 ~ 2 ~ 3 $>$ \} , & \{ 1, ~ $<$ 4 ~ 5 ~ 6 $>$ \} , & \{ 2, ~ $<$ 7 ~ 8 ~ 9 $>$ \} \end{tabular} \] |
OUTPUT(1): a 3 element vector for key 0.
\[ \begin{tabular}{c} $<$ 1 ~ 2 ~ 3 $>$ \end{tabular} \] |
OUTPUT(2): a 3 element vector for key 2.
\[ \begin{tabular}{c} $<$ 7 ~ 8 ~ 9 $>$ \end{tabular} \] |
OUTPUT(3): a 3 element vector, the average of vectors whose key is from 0 to 2.
\[ \begin{tabular}{c} $<$ 4 ~ 5 ~ 6 $>$ \end{tabular} \] |
OUTPUT(4): a 3 element vector, the summation of vectors whose key is from 0 to 2.
\[ \begin{tabular}{c} $<$ 12 ~ 15 ~ 18 $>$ \end{tabular} \] |