Class Array2DExtensionMethods
Extension methods based on Array2D
Inheritance
Array2DExtensionMethods
Assembly: TimeSeriesAnalysis.dll
Syntax
public static class Array2DExtensionMethods
Methods
|
Edit this page
View Source
Convert2DtoJagged(double[,])
Converts a 2d-array to a jagged array
Declaration
public static double[][] Convert2DtoJagged(this double[,] matrix)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
Returns
|
Edit this page
View Source
GetColumn(double[,], int)
returns the column of a 2d-array of doubles corresponding to columnIndex (starts at zero)
Declaration
public static double[] GetColumn(this double[,] matrix, int columnIndex)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
int |
columnIndex |
|
Returns
|
Edit this page
View Source
GetColumn(string[,], int)
returns the column of a 2d-array of strings corresponding to columnIndex (starts at zero)
Declaration
public static string[] GetColumn(this string[,] matrix, int columnIndex)
Parameters
Type |
Name |
Description |
string[,] |
matrix |
|
int |
columnIndex |
|
Returns
|
Edit this page
View Source
GetColumnParsedAsDateTime(string[,], int, string)
Parses a column in a 2d-array and returns the results as a vector of date-times.
Declaration
public static DateTime[] GetColumnParsedAsDateTime(this string[,] matrix, int columnNumber, string dateFormat)
Parameters
Returns
|
Edit this page
View Source
GetColumns(double[,], int[])
Returns the columns corresponding to columnNumbers as a 2d-array
Declaration
public static double[,] GetColumns(this double[,] matrix, int[] columnNumbers)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
int[] |
columnNumbers |
|
Returns
|
Edit this page
View Source
GetNColumns(double[,])
Return the number of columns of a 2d-matrix
Declaration
public static int GetNColumns(this double[,] matrix)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
Returns
|
Edit this page
View Source
GetNColumns(double[][])
Declaration
public static int GetNColumns(this double[][] matrix)
Parameters
Type |
Name |
Description |
double[][] |
matrix |
|
Returns
|
Edit this page
View Source
GetNRows(double[,])
Return the number of rows of a 2d-matrix
Declaration
public static int GetNRows(this double[,] matrix)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
Returns
|
Edit this page
View Source
GetNRows(double[][])
Declaration
public static int GetNRows(this double[][] matrix)
Parameters
Type |
Name |
Description |
double[][] |
matrix |
|
Returns
|
Edit this page
View Source
GetRow(double[,], int)
returns the row of a 2d-array of doubles corresponding to rowNumber (starts at zero)
Declaration
public static double[] GetRow(this double[,] matrix, int rowNumber)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
int |
rowNumber |
|
Returns
|
Edit this page
View Source
GetRow(string[,], int)
returns the row of a 2d-array of strings corresponding to rowNumber (starts at zero)
Declaration
public static string[] GetRow(this string[,] matrix, int rowNumber)
Parameters
Type |
Name |
Description |
string[,] |
matrix |
|
int |
rowNumber |
|
Returns
|
Edit this page
View Source
GetRowsAfterIndex(DateTime[], int)
Returns rows starting with rowIndex and onwards
Declaration
public static DateTime[] GetRowsAfterIndex(this DateTime[] array, int rowIndex)
Parameters
Returns
|
Edit this page
View Source
GetRowsAfterIndex(double[,], int)
Returns rows starting with rowIndex and onwards
Declaration
public static double[,] GetRowsAfterIndex(this double[,] array, int rowIndex)
Parameters
Type |
Name |
Description |
double[,] |
array |
|
int |
rowIndex |
|
Returns
|
Edit this page
View Source
GetRowsAfterIndex(double[], int)
Returns rows starting with rowIndex and onwards
Declaration
public static double[] GetRowsAfterIndex(this double[] array, int rowIndex)
Parameters
Type |
Name |
Description |
double[] |
array |
|
int |
rowIndex |
|
Returns
|
Edit this page
View Source
Transpose(double[,])
Declaration
public static double[,] Transpose(this double[,] matrix)
Parameters
Type |
Name |
Description |
double[,] |
matrix |
|
Returns
|
Edit this page
View Source
WriteColumn(double[,], int, double[])
overwrites the column in matrix with the new column newColumnValues
Declaration
public static double[,] WriteColumn(this double[,] matrix, int colIdx, double[] newColumnValues)
Parameters
Returns