Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Random »
CreateRandomArray_Deprecated
CreateRandomArray_Deprecated
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
| Header: | STD.h |
| Namespace: | avl |
Creates array with random values.
Syntax
void avl::CreateRandomArray_Deprecated
(
const int inLength,
const float inMinValue,
const float inMaxValue,
const float inStep,
atl::Optional<int> inSeed,
atl::Array<float>& outArray
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
 |
inLength |
const int |
|
10 |
Length of output array |
 |
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 generated values |
 |
inSeed |
Optional<int> |
|
NIL |
Random seed used to generate values |
 |
outArray |
Array<float>& |
|
|
|
Errors
List of possible exceptions:
| Error type |
Description |
| DomainError |
Value of inLength is non-positive. |
| DomainError |
Value of inMinValue is greater than value of inMaxValue. |
| DomainError |
Value of inStep is greater than span between maximal and minimal value. |
| DomainError |
Values inMinValue and inMaxValue are equal. |