Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
119bcf32
Commit
119bcf32
authored
Mar 31, 2020
by
Charlles Abreu
Browse files
New correction of periodic spline test
parent
a8d1ccd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/TestSplineFitter.cpp
tests/TestSplineFitter.cpp
+1
-1
No files found.
tests/TestSplineFitter.cpp
View file @
119bcf32
...
...
@@ -83,7 +83,7 @@ void testPeriodicSpline() {
ASSERT_EQUAL_TOL
(
cos
((
double
)
i
),
SplineFitter
::
evaluateSplineDerivative
(
x
,
y
,
deriv
,
i
),
0.05
);
}
for
(
unsigned
int
i
=
0
;
i
<
x
.
size
()
-
1
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
x
.
size
();
i
++
)
x
[
i
]
=
i
/
(
x
.
size
()
-
1.0
);
double
ya
[]
=
{
15.579
,
16.235
,
17.325
,
18.741
,
20.454
,
22.517
,
24.944
,
27.554
,
29.942
,
31.657
,
32.486
,
32.612
,
32.494
,
32.532
,
32.785
,
32.917
,
32.402
,
30.842
,
28.229
,
24.989
,
...
...
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