odc.geo.math.Bin1D.from_sample_bin

static Bin1D.from_sample_bin(idx, bin, direction=1)[source]

Construct Bin1D from a sample.

Parameters:
  • idx (int) – Index of a sample bin

  • bin (Tuple[float, float]) – x0, x1 bin edges

  • direction (Literal[1, -1]) – Default is to increment bin index left to right, supply -1 to go the other way

Return type:

Bin1D