日時: | 2023-12-03 |
---|---|
作: | voluntas |
バージョン: | 2023.1 |
url: | https://voluntas.github.io |
この記事が良いと思ったらこの記事に Star をお願いします
日時: | 2023-12-03 |
---|---|
作: | voluntas |
バージョン: | 2023.1 |
url: | https://voluntas.github.io |
この記事が良いと思ったらこの記事に Star をお願いします
# Description: | |
# Joke commands. | |
# | |
# Commands: | |
# ぬるぽ - You reply with, "ガッ" When you post a "ぬるぽ" word. | |
# | |
# Notes: | |
# ネタ/ジョーク系のbot全般 | |
module.exports = (robot) -> |
# -*- 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 |