I have a dataset, $y$, that is on some arbitrary range. I would like to transform this data to be on the range [-1,1]. This is accomplished using a linear transformation, such as the one described here: scale a number between a range
However, I would also like to specify the mean of the re-scaled data, within the range [-1,1]. When transforming the re-scaled data to accomplish this desired mean, you lose the correct boundaries/range.
How can I shift an arbitrary dataset to an arbitrary range AND hit a target mean? For example, mean = 0 on range [-1,1] for any arbitrary dataset X