normalize

openpnm.models.misc.normalize(target, prop, xmin=0, xmax=1)[source]

Normalizes the given array between the supplied limits

Parameters
  • target (Base) – The object which this model is associated with. This controls the length of the calculated array, and also provides access to other necessary properties.

  • xmin (float) – Lower limit of the re-scaled data

  • xmax (float) – Upper limit of the re-scaled data