Transforms this vector such that the first knot has a value of lower, and the last knot has a value of upper, and returns a reference to this vector.