This file contains 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
%% Hashing for Cosine Similarity | |
% This m file is written for the learning of Locality Sensitive Hashing. | |
% Enjoy! Any problem is welcome! | |
% | |
% Time: 2013/12/12 | |
% Released by: edisonqkj | |
% E-mail: [email protected] | |
% Referrence: | |
% http://www.cs.jhu.edu/~vandurme/papers/VanDurmeLallACL10-slides.pdf | |
% https://gist.github.com/greeness/94a3d425009be0f94751 |
This file contains 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
#!/usr/bin/python | |
''' | |
Split gpx tracks at discontinuities, that is, pairs of points in a track that | |
are further than a given distance threshold. | |
''' | |
import collections | |
from lxml import etree | |
import math | |
import optparse | |
import re |