Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
e847567f
Commit
e847567f
authored
May 22, 2022
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Throw away speed interpolation code.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
73603080
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
wmspeed.cc
src/wmspeed.cc
+0
-24
No files found.
src/wmspeed.cc
View file @
e847567f
...
@@ -69,7 +69,6 @@ struct SpeedScanParams
...
@@ -69,7 +69,6 @@ struct SpeedScanParams
double
step
=
0
;
double
step
=
0
;
int
n_steps
=
0
;
int
n_steps
=
0
;
int
n_center_steps
=
0
;
int
n_center_steps
=
0
;
bool
interpolate
=
false
;
};
};
class
MagMatrix
class
MagMatrix
...
@@ -341,29 +340,6 @@ SpeedSync::compare (double relative_speed)
...
@@ -341,29 +340,6 @@ SpeedSync::compare (double relative_speed)
result_scores
.
push_back
(
best_score
);
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
static
double
score_average_best
(
const
vector
<
SpeedSync
::
Score
>&
scores
)
score_average_best
(
const
vector
<
SpeedSync
::
Score
>&
scores
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment