Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Riccardo PELLARIN
recursive-gmconvert
Commits
bd8eaaea
Commit
bd8eaaea
authored
Mar 05, 2018
by
samuel hanot
Browse files
add test values to check against
parent
2499ba8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/3368/result_check.txt
0 → 100644
View file @
bd8eaaea
1 4 0.720751
2 16 0.809344
3 64 0.877221
4 256 0.932163
test/3368/test.sh
0 → 100755
View file @
bd8eaaea
#!/bin/bash
../../recursive_gmconvert.sh
-f
emd_3368.map
-t
$(
cat
cutoff.txt
)
-n
4
-N
2
-s
for
f
in
1 2 3 4
do
echo
$f
$(
awk
'/^#Ngauss/{N=$2} /^CC/{CC=$2; print N,CC}'
<
$f
/gmmscore_threshold
)
done
>
result.txt
result
=
$(
paste
result.txt result_check.txt |
awk
'{checksum+=($1-$4)/$4+($2-$5)/$5+($3-$6)/$6;n+=1} END{print checksum/n>0.01}'
)
exit
$result
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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