Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maths_optimisation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
philippe.montando
maths_optimisation
Commits
60fced69
Commit
60fced69
authored
3 years ago
by
sgegito
Browse files
Options
Downloads
Patches
Plain Diff
TP terminé, il ne reste QUE le rapport à faire
parent
70d727f6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
displayer.py
+10
-3
10 additions, 3 deletions
displayer.py
opti.c
+5
-5
5 additions, 5 deletions
opti.c
with
15 additions
and
8 deletions
displayer.py
+
10
−
3
View file @
60fced69
...
...
@@ -58,9 +58,16 @@ for line_ab in ab:
ab_l
.
append
(
float
(
line_ab
))
gug
(
ca_x
,
ca_y
,
cb_x
,
cb_y
,
cc_x
,
cc_y
,
ab_l
[
0
],
ab_l
[
1
],
ab_l
[
2
],
ab_l
[
3
],
"
G1 U G2 et test sur G3
"
)
#gug(ca_x, ca_y, cc_x, cc_y, cb_x, cb_y, ab_l[4], ab_l[5], ab_l[6], ab_l[7],"G1 U G2 et test sur G3")
#gug(cb_x, cb_y, cc_x, cc_y, ca_x, ca_y, ab_l[8], ab_l[9], ab_l[10], ab_l[11],"G1 U G2 et test sur G3")
# Uncomment the line if you want to display it :D
#G1 U G2 et test sur G3
gug
(
ca_x
,
ca_y
,
cb_x
,
cb_y
,
cc_x
,
cc_y
,
ab_l
[
0
],
ab_l
[
1
],
ab_l
[
2
],
ab_l
[
3
],
"
G1 U G2 et test sur G3
"
)
#G1 U G3 et test sur G2
#gug(ca_x, ca_y, cc_x, cc_y, cb_x, cb_y, ab_l[4], ab_l[5], ab_l[6], ab_l[7],"G1 U G3 et test sur G2")
#G2 U G3 et test sur G1
#gug(cb_x, cb_y, cc_x, cc_y, ca_x, ca_y, ab_l[8], ab_l[9], ab_l[10], ab_l[11],"G2 U G3 et test sur G1")
ca
.
close
()
cb
.
close
()
cc
.
close
()
This diff is collapsed.
Click to expand it.
opti.c
+
5
−
5
View file @
60fced69
#include
"opti.h"
int
CLOUD_POINTS
=
1000
;
// You can change all the numbers for different results
int
CLOUD_POINTS
=
100
;
double
RANDOMNESS
=
0
.
2
;
double
MY_RAND_MAX
=
1
.
0
;
double
MY_RAND_MIN
=
0
.
0
;
...
...
@@ -263,11 +264,10 @@ void cross_validation(Point* cloud0, Point* cloud1, Point* cloud2, double* a, do
FILE
*
ab
;
ab
=
fopen
(
"ab.lines"
,
"w+"
);
fprintf
(
ab
,
"%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f
\n
%f"
,
*
a
,
*
b
,
*
c
,
*
d
,
*
e
,
*
f
,
*
g
,
*
h
,
*
k
,
*
l
,
*
m
,
*
n
);
fclose
(
ab
);
fclose
(
ab
);
free
(
merged_1
);
free
(
merged_2
);
free
(
merged_3
);
free
(
merged_1
);
free
(
merged_2
);
free
(
merged_3
);
free
(
c
);
free
(
d
);
free
(
e
);
free
(
f
);
free
(
g
);
free
(
h
);
free
(
k
);
free
(
l
);
free
(
m
);
free
(
n
);
}
int
main
(
void
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment