Core iTOps Tube

Friday, 29 June 2012

Interpolate between lines

Dear All,



I need your help, I have file like this :




Code:


input.txt

1000

1002

1006

1010

.

.

.


desired output:




Code:


1000

1001

1002

1004

1006

1008

1010

.

.

.


I need to interpolate betwen one line with next line,

algoritm is



bold_line= (line_upper + line_lower)/2



Thanks for advance,



Attila




No comments:

Post a Comment