odc.geo.math.Bin1D
- class odc.geo.math.Bin1D(sz, origin=0.0, direction=1)[source]
Class for translating continous coordinates to bin index.
Binning is defined using following parameters:
- Parameters:
Methods
__init__
(sz[, origin, direction])Construct
Bin1D
object.bin
(x)Lookup bin index that
x
falls into.from_sample_bin
(idx, bin[, direction])Construct
Bin1D
from a sample.Attributes
sz
origin
direction