Wrap a dynts.TimeSeries and expose binary-tree like functionalities. A dynts.TimeSeries instance has a shortcut method which construct a asbtree. Here is an example:
>>> from dynts.utils.populate import randomts, date
>>> ts = randomts(cols = 2, start = date(2010,1,1), size = 50)
>>> dts = ts.asbtree()
>>> sts.find_ge(ts.start())
1
>>> sts.find_ge(ts.end())
49
Building block of all searches. Find the index corresponding to the leftmost value greater or equal to dt. If dt is greater than the dynts.TimeSeries.end() a dynts.exceptions.RightOutOfBound exception will raise.
dt must be a python datetime.date instance.
Find the index corresponding to the rightmost value less than or equal to dt. If dt is less than dynts.TimeSeries.end() a dynts.exceptions.LeftOutOfBound exception will raise.
dt must be a python datetime.date instance.