mean_matrixT_mean_matrixMeanMatrixMeanMatrix (Operator)

Name

mean_matrixT_mean_matrixMeanMatrixMeanMatrix — Gibt den elementweisen Mittelwert einer Matrix zurück.

Signatur

mean_matrix( : : MatrixID, MeanType : MatrixMeanID)

Herror T_mean_matrix(const Htuple MatrixID, const Htuple MeanType, Htuple* MatrixMeanID)

void MeanMatrix(const HTuple& MatrixID, const HTuple& MeanType, HTuple* MatrixMeanID)

HMatrix HMatrix::MeanMatrix(const HString& MeanType) const

HMatrix HMatrix::MeanMatrix(const char* MeanType) const

HMatrix HMatrix::MeanMatrix(const wchar_t* MeanType) const   (Nur Windows)

static void HOperatorSet.MeanMatrix(HTuple matrixID, HTuple meanType, out HTuple matrixMeanID)

HMatrix HMatrix.MeanMatrix(string meanType)

Beschreibung

Der Operator mean_matrixmean_matrixMeanMatrixMeanMatrixMeanMatrix gibt den Mittelwert der Elemente der Eingabematrix MatrixMatrixMatrixMatrixmatrix zurück. Die Eingabematrix ist durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixID definiert. Es wird eine neue Matrix MatrixMeanMatrixMeanMatrixMeanMatrixMeanmatrixMean mit dem Ergebnis generiert und das Matrix Handle MatrixMeanIDMatrixMeanIDMatrixMeanIDMatrixMeanIDmatrixMeanID dieser Matrix zurückgegeben. Zugriff auf die Elemente der Matrix ist z.B. mit dem Operator get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix möglich.

Die Art der Mittelwertbildung der Matrix kann mittels des Parameters MeanTypeMeanTypeMeanTypeMeanTypemeanType gewählt werden:

'columns'"columns""columns""columns""columns":

Die Mittelwertbildung erfolgt für jede Spalte der Matrix MatrixMatrixMatrixMatrixmatrix einzeln. Die Ergebnismatrix MatrixMeanMatrixMeanMatrixMeanMatrixMeanmatrixMean hat eine Zeile und die gleiche Anzahl an Spalten wie die Eingabematrix.

Beispiel:

'rows'"rows""rows""rows""rows":

Die Mittelwertbildung erfolgt für jede Zeile der Matrix MatrixMatrixMatrixMatrixmatrix einzeln. Die Ergebnismatrix MatrixMeanMatrixMeanMatrixMeanMatrixMeanmatrixMean hat die gleiche Anzahl an Zeilen wie die Eingabematrix und eine Spalte.

'full'"full""full""full""full":

Die Mittelwertbildung erfolgt über alle Elemente der Matrix MatrixMatrixMatrixMatrixmatrix. Die Ergebnismatrix MatrixMeanMatrixMeanMatrixMeanMatrixMeanmatrixMean hat eine Zeile und eine Spalte.

Ausführungsinformationen

Parameter

MatrixIDMatrixIDMatrixIDMatrixIDmatrixID (input_control)  matrix HMatrix, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle der Eingabematrix.

MeanTypeMeanTypeMeanTypeMeanTypemeanType (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Art der Mittelwertwertbildung.

Defaultwert: 'columns' "columns" "columns" "columns" "columns"

Werteliste: 'columns'"columns""columns""columns""columns", 'full'"full""full""full""full", 'rows'"rows""rows""rows""rows"

MatrixMeanIDMatrixMeanIDMatrixMeanIDMatrixMeanIDmatrixMeanID (output_control)  matrix HMatrix, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle mit den Mittelwerten der Eingabematrix.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert mean_matrixmean_matrixMeanMatrixMeanMatrixMeanMatrix den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrix

Nachfolger

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrix

Siehe auch

norm_matrixnorm_matrixNormMatrixNormMatrixNormMatrix, sum_matrixsum_matrixSumMatrixSumMatrixSumMatrix

Modul

Foundation