Algorithm for data alignment of float arrays in Java
- by Derk
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