6.7.11 MapToVector

6.7.11.1 ノードの概要

Map<int, ObjectRef> 型から Vector<float> 型,または, Vector<complex<float> > 型へ変換を行う.

6.7.11.2 必要なファイル

無し.

6.7.11.3 使用方法

どんなときに使うのか

Map<int, ObjectRef> 型を Vector<float> または Vector<complex<float> > 型に変換する際に用いる.入力が Map$<$ int , Vector<float> $>$ の場合,出力は Vector<float> に,入力が Map$<$ int , Vector<complex<float> > $>$ の場合,出力は Vector<complex<float> > になる.

6.7.11.4 ノードの入出力とプロパティ

入力

INPUT

: Map<int, ObjectRef> 型の,Map$<$ int , Vector<float> $>$ または Map$<$ int , Vector<complex<float> > $>$ 型.

出力

OUTPUT

: any .ただし,サポートする型は Vector<float> または Vector<complex<float> > 型.

パラメータ

Table 6.95: MapToVector パラメータ表

パラメータ名

デフォルト値

単位

説明

METHOD

string 

min_key

 

Map<int, ObjectRef> から Vector への変換方法.min_key, max_key, average, summation から選択する.

DEBUG

bool 

false

 

変換状況を出力するかどうかの選択.

METHOD

: string 型. Map<int, ObjectRef> から Vector への変換方法を指定する.min_key, max_key, average, summation から選択. min_key または max_key が選択されると,最小または最大のキーを持つ Map<int, ObjectRef> の値の Vector<float> または Vector<complex<float> > が出力され,average または summation が選択されると,Map<int, ObjectRef> の全部の値を平均または合計した Vector<float> または Vector<complex<float> > が出力される. デフォルトは min_key.

DEBUG

: bool 型. デフォルトは falsetrueが与えられると, 変換状況が標準出力に出力される.

6.7.11.5 ノードの詳細

Table 6.96: MapToVector 変換表

INPUT

OUTPUT

METHOD

 
   

min_key

(1)

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

Vector<float> 

max_key

(2)

   

average

(3)

   

summation

(4)

   

min_key

 

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

Vector<complex<float> > 

max_key

 
   

average

 
   

summation

 

<例>

INPUT:キーと要素3のベクタの値が3つ { 0, $<$ 1 2 3 $>$ }, { 1, $<$ 4 5 6 $>$ }, { 2, $<$ 7 8 9 $>$ }


OUTPUT(1): キー0の値の要素3のベクタ $<$ 1 2 3 $>$

OUTPUT(2): キー2の値の要素3のベクタ $<$ 7 8 9 $>$

OUTPUT(4): キー0から2の値の各要素の平均 $<$ 4 5 6 $>$

OUTPUT(3): キー0から2の値の各要素の合計 $<$ 12 15 18 $>$