Skip to content

Compute should sum the optimal path in the distance matrix? #1

Description

@tommedema

Thanks for this great library @langholz !

I noticed that when computing the DTW distance you are simply returning the last cell in the distance matrix: https://github.com/langholz/dtw/blob/master/lib/dtw.js#L148

From how I understand DTW, the distance is actually the sum of the most optimal path in the distance matrix (i.e. a greedy search). Therefore shouldn't you return this sum instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions