mean_matrix T_mean_matrix MeanMatrix MeanMatrix mean_matrix (Operator)
Name
mean_matrix T_mean_matrix MeanMatrix MeanMatrix mean_matrix — Gibt den elementweisen Mittelwert einer Matrix zurück.
Signatur
Beschreibung
Der Operator mean_matrix mean_matrix MeanMatrix MeanMatrix MeanMatrix mean_matrix gibt den Mittelwert der Elemente
der Eingabematrix Matrix zurück. Die Eingabematrix ist
durch das Matrix Handle MatrixID MatrixID MatrixID MatrixID matrixID matrix_id definiert. Es wird eine
neue Matrix MatrixMean mit dem Ergebnis generiert und das
Matrix Handle MatrixMeanID MatrixMeanID MatrixMeanID MatrixMeanID matrixMeanID matrix_mean_id dieser Matrix zurückgegeben.
Zugriff auf die Elemente der Matrix ist z.B. mit dem Operator
get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix möglich.
Die Art der Mittelwertbildung der Matrix kann mittels des Parameters
MeanType MeanType MeanType MeanType meanType mean_type gewählt werden:
'columns' "columns" "columns" "columns" "columns" "columns" :
Die Mittelwertbildung
erfolgt für jede Spalte der Matrix Matrix einzeln. Die
Ergebnismatrix MatrixMean hat eine Zeile und die gleiche
Anzahl an Spalten wie die Eingabematrix.
Beispiel:
MeanType MeanType MeanType MeanType meanType mean_type = 'columns' "columns" "columns" "columns" "columns" "columns"
'rows' "rows" "rows" "rows" "rows" "rows" :
Die Mittelwertbildung erfolgt
für jede Zeile der Matrix Matrix einzeln. Die
Ergebnismatrix MatrixMean hat die gleiche Anzahl an
Zeilen wie die Eingabematrix und eine Spalte.
Beispiel:
MeanType MeanType MeanType MeanType meanType mean_type = 'rows' "rows" "rows" "rows" "rows" "rows"
'full' "full" "full" "full" "full" "full" :
Die Mittelwertbildung erfolgt
über alle Elemente der Matrix Matrix. Die
Ergebnismatrix MatrixMean hat eine Zeile und eine
Spalte.
Beispiel:
MeanType MeanType MeanType MeanType meanType mean_type = 'full' "full" "full" "full" "full" "full"
Ausführungsinformationen
Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
Wird ohne Parallelisierung verarbeitet.
Parameter
MatrixID MatrixID MatrixID MatrixID matrixID matrix_id (input_control) matrix → HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix Handle der Eingabematrix.
MeanType MeanType MeanType MeanType meanType mean_type (input_control) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Art der Mittelwertwertbildung.
Defaultwert:
'columns'
"columns"
"columns"
"columns"
"columns"
"columns"
Werteliste: 'columns' "columns" "columns" "columns" "columns" "columns" , 'full' "full" "full" "full" "full" "full" , 'rows' "rows" "rows" "rows" "rows" "rows"
MatrixMeanID MatrixMeanID MatrixMeanID MatrixMeanID matrixMeanID matrix_mean_id (output_control) matrix → HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix Handle mit den Mittelwerten der
Eingabematrix.
Ergebnis
Sind die Parameterwerte korrekt, dann liefert mean_matrix mean_matrix MeanMatrix MeanMatrix MeanMatrix mean_matrix
den Wert 2 (H_MSG_TRUE ). Gegebenenfalls wird eine Fehlerbehandlung
durchgeführt.
Vorgänger
create_matrix create_matrix CreateMatrix CreateMatrix CreateMatrix create_matrix
Nachfolger
get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix ,
get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix GetValueMatrix get_value_matrix
Siehe auch
norm_matrix norm_matrix NormMatrix NormMatrix NormMatrix norm_matrix ,
sum_matrix sum_matrix SumMatrix SumMatrix SumMatrix sum_matrix
Modul
Foundation