Imagine a black box which accepts a digital input signal which is a pure sine wave and outputs the area between this input signal and some constant data set over a sample window.
Given the input and output signals, is it possible to determine the sample data set?
Edit: Here is how the box calculates area between two data points...
private double areaBetween(double a, double b)
{
if (Math.Sign(a) == Math.Sign(b))
{
if (Math.Abs(a) > Math.Abs(b))
return a - b;
else
return b - a;
}
else
{
return a + b;
}
}