This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # An pure python implemetation of Dynamic Time Warpping | |
| # http://en.wikipedia.org/wiki/Dynamic_time_warping | |
| class Dtw(object): | |
| def __init__(self, seq1, seq2, distance_func=None): | |
| ''' | |
| seq1, seq2 are two lists, | |
| distance_func is a function for calculating |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # An pure python implemetation of Dynamic Time Warpping | |
| # http://en.wikipedia.org/wiki/Dynamic_time_warping | |
| class Dtw(object): | |
| def __init__(self, seq1, seq2, distance_func=None): | |
| ''' | |
| seq1, seq2 are two lists, | |
| distance_func is a function for calculating |