Computing the gains of a piecewise affine system
Add a DC signal to your sinusoidal input, so that the input falls in the middle of each line segment of the input-output curve. Then choose the amplitude of the input sinusoid in order to avoid "spilling over" into the other segments. Measure the amplitude of the output sinusoid (neglecting its DC component, of course). Lastly, compute the gain.