uniform#
Signature#
- uniform(array_shape, partition_shape, min_value, max_value) Field#
Return an array with values drawn from the uniform distribution.
- Parameters:
array_shape (Shape) – Shape of the array
partition_shape (Shape) – Shape of the partitions
min_value (Field) – Minimum value of the distribution (value, scalar)
max_value (Field) – Maximum value of the distribution (value, scalar)
- Returns:
New array
- uniform(array_shape, min_value, max_value) Field
Overload. A default partition shape will be used.
- uniform(array, min_value, max_value) Field
Overload. The passed in array’s shape and partition shape will be used.
- uniform(min_value, max_value) Scalar#
Return a scalar with a value drawn from the uniform distribution.
- Parameters:
min_value (Scalar) – Minimum value of the distribution (value, scalar)
max_value (Scalar) – Maximum value of the distribution (value, scalar)
- Returns:
New scalar
Description#
TODO
No-data handling#
TODO
Example#
/* TODO */
// The output element type is deduced from the min/max argument values, but can be overridden by a
// template parameter.
auto const result = lue::value_policies::uniform<std::uint64_t>(array, 0, 100);
// TODO
# A dtype argument is used to specify the output element type
result = lfr.uniform(array, np.int64, 0, 100)