Finally got around to posting this. I think the screen-cap should show pretty much how to do it. The key is to first start with a flat terrain-- either make an iceberg or draw a shape with the altitude brush so it is flat. Then apply the function to it to make the waves. Changing the resolution of the terrain and the scale of the function will produce different sizes of waves. Have fun!