I also think this isn't a great string representation of a transverse wave, looking at it, there is no way to easily pick it out as a wave. I think a wave is different than its mathematical representation, and you could define different ways to represent a wave (like this using cos/sin functions, or as a complex exponential). I think you should have methods to recover this representation, tho.