I'm just starting to get back into math for some computer programs i am writing and I've run into a complex regression-like problem. Its been a long time since grade school and i don't even know which field of mathematics to look into for this. Here's the deal:
I have 5 datasets. Each is just a set of magnitude measurements taken at N regular intervals of time. I also have what i will call an "ideal" dataset of the same type. What i would like to do is modify the 5 "regular" datasets so that when I add their magnitudes together to produce a new dataset of N points, the resulting dataset most closely resembles the "ideal" dataset. The only way i can modify each of the 5 regular datasets however is by adding a constant value to all of the magnitudes. In other words, i can only move each entire dataset up or down. This seemed similar to finding a regression line to me, where you find the line that minimizes the squared error for all the points, but i am not sure how to apply it to this case.