HistogramData#

class rojak.turbulence.analysis.HistogramData(hist_values, bins, mean, variance)[source]#

Histogram of the log-normal distribution of a turbulence diagnostic’s values

See DiagnosticHistogramDistribution for how this is computed. numpy arrays passed into the constructor are converted to lists so that the instance is JSON-serialisable.

Parameters:
__init__(*args, **kwargs)[source]#
Parameters:
  • __dataclass_self__ (PydanticDataclass)

  • args (Any)

  • kwargs (Any)

Return type:

None

Methods

__init__(*args, **kwargs)

as_json_dict()

Convert to a plain, JSON-serialisable dictionary

filter_insignificant_bins([minimum_value])

Drop histogram bins whose density is below minimum_value

Attributes

hist_values

bins

mean

variance