title: Applying window constraint in DTW
body: <p>I use dtw package in r.</p>
  
  <p>I am comparing the results of the simulation against those of experiment results.
  I need to adjust the time shift (neither the scale in x-axis nor in y-axis), because the timing of events can be a little bit different.</p>
  
  <p>I use the following function.</p>
  
  <pre><code>alignment&lt;-dtw(exp, sim, keep=TRUE, 
             window.type='sakoechiba', 
             window.size=1);
  </code></pre>
  
  <p>Even though I set the window.size=1, the points that are quite far to each other are matched together.</p>
  
  <p>How can I fix this issue? thanks,</p>