Skip to content
Snippets Groups Projects
Commit d2e7c33a authored by dario.genga's avatar dario.genga
Browse files

Add struct and remove README.md

parent 02571f35
No related branches found
No related tags found
No related merge requests found
......@@ -84,14 +84,24 @@ et la vérification de notre algorithme.
$$v \in \mathbb{N}^2$$
### structure de donnée
*points*
float x - y
label - cluster
*cluster*
tab[nbr point]
taille du tableau : connaitre le nombre de point a l'avance ou sinon donner un nombre aléatoire et reallouer si bessoin
typedef struct _cluster {
point* centroid;
} cluster;
typedef struct _point {
float x;
float y;
char* label; // for tests
struct _cluster* cluster;
int color;
} point;
typedef struct _kmeans {
int k;
cluster clusters_array[k];
point** points_array;
} kmeans;
**BONUS 1** : étendre l'implémentation pour pouvoir utiliser des vecteurs
à $n$ dimensions avec $n$ passé en paramètre au début de la procédure.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment