Add create and destroy methods
In kmeans.h : - Fix some missing pointers. - Swap the destroy_point and destroy_cluster. In kmeans.c : - Add allocation and free for kmeans, point and cluster create methods. - Add the signature of the other methods. In main.c : - Add some code to test the allocations.
Please register or sign in to comment