- openpnm.models.misc.statistical_distributions.match_histogram(target, bin_centers, bin_heights, element='pore')¶
Generate values corresponding to a given histogram
target (OpenPNM Base object) – Object with which this model is associated. This controls the length of the calculated array, and also provides access to other necessary properties.
bin_centers (array_like) – The x-axis of the histogram, such as pore sizes.
bin_heights (array_like) – The y-axis of the histogram, such as the number of pores of each size.
element (str) – Controls how many values to generate. Can either be ‘pore’ or ‘throat’.
values – Values corresponding to
bin_centersgenerated in proportion to the respective
- Return type