https://1library.net/document/wyelje4q-pseudometrics-nearest-neighbor-classification-time-series-data.html