Class MatrixGenerator
MatrixGenerator
Defined in: MatrixGenerator.js.
Constructor Attributes | Constructor Name and Description |
---|---|
MatrixGenerator(type)
Generates random matrix with characters from A-F and numbers.
|
Method Attributes | Method Name and Description |
---|---|
<inner> |
getRandomString(length)
Returns a random string of given length.
|
init(int_height, int_width)
Initialize the MatrixGenerator.
|
|
Returns the complete matrix.
|
|
Returns the complete matrix.
|
|
Returns the complete matrix.
|
Class Detail
MatrixGenerator(type)
Generates random matrix with characters from A-F and numbers.
- Parameters:
- type
Method Detail
<inner>
{string}
getRandomString(length)
Returns a random string of given length.
- Parameters:
- {Number} length
- - length of the string.
- Returns:
- {string} random string of given length.
init(int_height, int_width)
Initialize the MatrixGenerator.
- Parameters:
- {Number} int_height
- - height of the matrix to generate.
- {Number} int_width
- - width of the matrix to generate.
{ArrayOfArray}
test_getMatrix()
Returns the complete matrix.
- Returns:
- {ArrayOfArray} mat_testMatrix - An array of array representing the matrix.
{Array}
test_getMatrixColumnLabels()
Returns the complete matrix.
- Returns:
- {Array} arr_rowLabels - An array of column labels.
{Array}
test_getMatrixRowLabels()
Returns the complete matrix.
- Returns:
- {Array} arr_rowLabels - An array of row labels.