Back to Adaptive Vision Library website
You are here: Start » Function Reference » Random » CreateRandomMatrix_Deprecated
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Creates matrix with random values in closed interval.
Syntax
void avl::CreateRandomMatrix_Deprecated ( const int inColumnCount, const int inRowCount, const float inMinValue, const float inMaxValue, const float inStep, atl::Optional<int> inSeed, avl::Matrix& outMatrix )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inColumnCount | const int | 10 | Columns count of generated matrix | ||
inRowCount | const int | 10 | Rows count of generated matrix | ||
inMinValue | const float | Minimal generated value | |||
inMaxValue | const float | 10.0f | Maximal generated value | ||
inStep | const float | 0.0001 - | 1.0f | Minimal difference between two random values | |
inSeed | Optional<int> | NIL | Random seed used to generate values | ||
outMatrix | Matrix& |
Errors
Error type | Description |
---|---|
DomainError | Value of inColumnCount is non-positive. |
DomainError | Value of inRowCount is non-positive. |
DomainError | Value of inMinValue is greater than value of inMaxValue. |
DomainError | Values inMinValue and inMaxValue are equal. |
DomainError | Value of inStep is greater than span between maximal and minimal value. |