Evaluate a single value or a sequence of values.
The values can be have a uniform (keyword ‘random’) or normal (keyword ‘normal’) random distribution.
Parameters: | val : config value
shape : tuple, optional
|
---|---|
Returns: | out : data
|
Format a dictionary for printing.
Parameters:
- d : dict
- The dictionary.
- raw : dict
- The raw (unadjusted) dictionary to compare with.
- indent : int
- The indentation level.
Return:
- msg : string
- The string with dictionary’s key : val formatted in two columns.
Get an array of random numbers a with the uniform distribution so that ranges0[i] <= a[i] < ranges1[i].
Returns: | a : array
|
---|
Get suffix format string given a number of files.
Examples:
n = 5 -> ‘%01d’ n = 15 -> ‘%02d’ n = 1005 -> ‘%04d’