Commit e847567f authored by Stefan Westerfeld's avatar Stefan Westerfeld

Throw away speed interpolation code.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 73603080
......@@ -69,7 +69,6 @@ struct SpeedScanParams
double step = 0;
int n_steps = 0;
int n_center_steps = 0;
bool interpolate = false;
};
class MagMatrix
......@@ -341,29 +340,6 @@ SpeedSync::compare (double relative_speed)
result_scores.push_back (best_score);
}
class QInterpolator // quadratic interpolation between three data values
{
double a, b, c;
public:
QInterpolator (double y1, double y2, double y3)
{
a = (y1 + y3) / 2 - y2;
b = (y3 - y1) / 2;
c = y2;
}
double
eval (double x)
{
return ((a * x) + b) * x + c;
}
double
x_max()
{
return -b / (2 * a);
}
};
static double
score_average_best (const vector<SpeedSync::Score>& scores)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment