Updating the counting.py utility
Remember the counting.py
utility from Chapter 2? In this section, we are going to update it and use it for some important tasks. We are not going to completely change the existing functionality or throw away all the existing code. We are going to build on the existing code of the counting.py
utility, which is a great and productive way to develop new software.
The updated version of the utility can be used for the following tasks:
- Seeing whether a time series can fit into an iSAX index. This computation is based on the existing functionality of
counting.py
combined with a test of whether the values of all dictionary entries are smaller than the threshold value. - Seeing whether a time series can fit into an iSAX index using more segments or by increasing the threshold. Again, this computation is based on the existing functionality of
counting.py
, which is enhanced with some extra computations and testing. - Seeing whether an iSAX index...