-Slice
-get_bounds_slice (Array<Real> const& positions, Real x)
-{
- int l = get_lower_bound (positions, x);
- int u = positions.size () - 1 <? l + 1;
- if (x < positions[l])
- u = l;
- return Slice (l, u);
-}
-
-Interval
-get_bounds_iv (Array<Real> const& positions, Real x)
+/*
+ 0 at 0, 1 at standard_x, and increasing thereafter.
+ */
+Real
+convex_amplifier (Real standard_x, Real increase_factor, Real x)