Algorithm for data alignment of float arrays in Java

Posted by Derk on Stack Overflow See other posts from Stack Overflow or by Derk
Published on 2010-05-19T10:28:51Z Indexed on 2010/05/19 10:30 UTC
Read the original article Hit count: 332

Filed under:
|
|

I have two float arrays representing y values in a line chart. Now I want to align these two charts. Are there any existing algorithms for alignment of the two arrays?

A very simple example

a:
2.5 1.3 1.6 4.2 3.6

b:
3.3 1.4 2.5 1.3 1.6

Now after alignment it should be:

        2.5 1.3 1.6 4.2 3.6
3.3 1.4 2.5 1.3 1.6

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about java