Map<int, ObjectRef> 型と Matrix < ObjectRef > 型の変換を行う.
無し.
どんなときに使うのか
Map<int, ObjectRef> 型を Matrix<float> または Matrix<complex<float> > 型に変換する際に用いる.入力が Map< int , Matrix<float> > の場合,出力は Matrix<float> に,入力が Map< int , Matrix<complex<float> > > の場合,出力は Matrix<complex<float> > になる.
入力
: Map<int, ObjectRef> 型の,Map< int , Matrix<float> > または Map< int , Matrix<complex<float> > > 型.
出力
: any .ただし,サポートする型は Matrix<float> または Matrix<complex<float> > 型.
パラメータ
パラメータ名 |
型 |
デフォルト値 |
単位 |
説明 |
METHOD |
min_key |
Map<int, ObjectRef> から Matrix < ObjectRef > への変換方法.min_key, max_key, average, summation から選択する. |
||
DEBUG |
false |
変換状況を出力するかどうかの選択. |
: string 型. Map<int, ObjectRef> から Matrix < ObjectRef > への変換方法を指定する.min_key, max_key, average, summation から選択. min_key または max_key が選択されると,最小または最大のキーを持つ Map<int, ObjectRef> の値の Matrix<float> または Matrix<complex<float> > が出力され,average または summation が選択されると,Map<int, ObjectRef> の全部の値を平均または合計した Matrix<float> または Matrix<complex<float> > が出力される. デフォルトは min_key.
: bool 型. デフォルトは false. trueが与えられると, 変換状況が標準出力に出力される.
INPUT |
OUTPUT |
METHOD |
|
min_key |
(1) |
||
Map< int , Matrix<float> > |
max_key |
(2) |
|
average |
(3) |
||
summation |
(4) |
||
min_key |
|||
Map< int , Matrix<complex<float> > > |
max_key |
||
average |
|||
summation |
<例>
INPUT:キーと2X2のマトリクスの値が3つ
{0,[1234]} |
,
{1,[5678]} |
,
{2,[9101112]} |
↓
OUTPUT(1):キー0の値の2X2のマトリクス
[1234] |
OUTPUT(2):キー2の値の2X2のマトリクス
[9101112] |
OUTPUT(3):キー0から2の値の平均の2X2のマトリクス
[5678] |
OUTPUT(4):キー0から2の値の合計の2X2のマトリクス
[15182124] |