B: 60, 70, 80100105120,
Through what mathematical formula, group B data can be converted to A set of data,
Example:
X: 60, 70, 80100105120,
Y: 70, 65, 50, 60, 40, 48,
Y=(100 -) (X/2)
CodePudding user response:
This has the certain difficulty, be equivalent to curve fittingCan have a try with enumeration method
First check if, for example, a relationship, that is, y=k * x + c, through the various points, calculate the slope k and c, if k and c, may for a relationship, this is obviously not, because the slope=(y2 - y1)/(x2 - x1), (70-60)/(235-255)=1/2, (105-100)/(150-190)=- 1/8, huge difference between slope
And then check if the secondary relationship, y=a * x ^ 2 + b * x + c, substitution groups of data, calculate a, b, c, if a, b, c, may for quadratic relationship, if not, then continue to judge whether the three relations
And so on, so on
So, with a circulation of n from a to n times, namely, y=a * x x ^ ^ n + b * (n - 1) +... + c, respectively in each group data, calculate the coefficient
CodePudding user response:
Can be look-up table directly, if the data is not much, don't bother to make what mathematical formula