gstools.transform.array_to_uniform
- gstools.transform.array_to_uniform(field, mean=None, var=None, low=0.0, high=1.0)[source]
Transform normal distribution to uniform distribution on [low, high].
- Parameters
field (
numpy.ndarray
) – Normal distributed values.mean (
float
orNone
, optional) – Mean of the given field. If None is given, the mean will be calculated. Default:None
var (
float
orNone
, optional) – Variance of the given field. If None is given, the variance will be calculated. Default:None
low (
float
, optional) – Lower bound for the uniform distribution. Default: 0.0high (
float
, optional) – Upper bound for the uniform distribution. Default: 1.0
- Returns
Transformed field.
- Return type