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. The default value is false. Setting the value to trueoutputs the conversion status to the standard output.
INPUT |
OUTPUT |
METHOD |
|
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 |
<例>
INPUT: Three input values, each value consists of a key and a 3 element vector. { 0, $<$ 1 2 3 $>$ }, { 1, $<$ 4 5 6 $>$ }, { 2, $<$ 7 8 9 $>$ }
↓
OUTPUT(1): a 3 element vector for key 0 $<$ 1 2 3 $>$
OUTPUT(2): a 3 element vector for key 2 $<$ 7 8 9 $>$
OUTPUT(4): a 3 element vector, the average of vectors whose key is from 0 to 2 $<$ 4 5 6 $>$
OUTPUT(3): a 3 element vector, the summation of vectors whose key is from 0 to 2 $<$ 12 15 18 $>$