Dtw Barycenter Averaging (DBA)

Here is the algorithm of DBA. This is an unoptimized Java version of the algorithm.

I hope there is no bug in it ;).

Java source code

Mathlab source code


Please cite as:

  • F. Petitjean, A. Ketterlin & P. Gançarski
    A global averaging method for dynamic time warping, with applications to clustering
    Pattern Recognition, Elsevier, 2011, Vol. 44, Num. 3, pp. 678-693
    doi: 10.1016/j.patcog.2010.09.013


The source is licensed under a GPL v3. For any commercial license, please feel free to contact me at

Tel.: +61 3 9905 9182
E-Mail: petitjean (at) tiny-clues (dot) eu