Code and data set are at https://github.com/XiaofengZhu/wDTW-wTED.