What would be the best way to achieve this graph mapper effect?

I need to space some rectangles in a varying manner (see first image below). I believe one way to do this is with the graph mapper, but it would need to be something like a double-curved bezier graph (see second image below). The issue is, I think you can only do a bezier graph with one curve in graph mapper.

I came up with a crude solution of dividing the outputs from the graph mapper by two, then adding them to .5 to form a full range of number from 0 to 1 that would essentially reflect a double bezier curve graph. The issue here though is I then wind up with twice as many values, and two values at .5.

If there is a better means of executing this, I would certainly appreciate the help.

2018.10.23_mcneel_forum.gh (13.9 KB)

Check out @Dani_Abalde Graph mapper plug-in. It adds new graph types to the existing graph mapper. One of which is a double-curved bezier graph. https://www.food4rhino.com/app/riched-graph-mapper

Not a Bezier, but here’s a formula that will give an arbitrary number of undulations similar to the picture you’ve drawn.


onde.gh (6.2 KB)