Yeah each x value takes the average height of its two neighbors. I only did this to experiment for generating heights for me game