Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 838 Bytes

Histogram.to_delta.md

File metadata and controls

30 lines (19 loc) · 838 Bytes

Histogram.to_delta (function)

def to_delta(self, loc='median')

Convert the Histogram distribution to a Delta distribution at the Histogram.median (or Histogram.mean).

Arguments

  • loc (string or float, optional, default='median'): If a float, will create a delta function directly at that value. If 'median' or 'mean' will use Histogram.median or Histogram.mean, respectively. If 'sample', will draw a random sample from Histogram.sample. All other strings will raise a ValueError.

Returns

Raises

  • ValueError: if the value of loc is not one of 'median', 'mean', 'sample'