コード例 #1
0
        //--------------------------------------------------------------------------------------------------------------
        //Развертка по строкам
        public RealMatrix UnwrapMatrixByRows(
            RealMatrix matrix, int extremumIndex, UnwrapDirection unwrapDirection,
            double thresholdDifferenceValue, double increasingStep
            )
        {
            int        rowCount    = matrix.RowCount;
            int        columnCount = matrix.ColumnCount;
            RealMatrix newMatrix   = new RealMatrix(rowCount, columnCount);

            for (int row = 0; row < rowCount; row++)
            {
                double[] rowData          = matrix.GetRow(row);
                double[] correctedRowData = this.DeleteFirstDisplacement(rowData);
                double[] newRowData       =
                    this.UnwrapArray(correctedRowData, thresholdDifferenceValue, extremumIndex, unwrapDirection, increasingStep);
                newMatrix.SetRowData(row, newRowData);
            }
            return(newMatrix);
        }