Skip to content
Snippets Groups Projects
  1. Jun 18, 2022
  2. Jun 14, 2022
  3. Jun 07, 2022
    • dario.genga's avatar
      Add export of data from universe · b0da2dcd
      dario.genga authored
      Added a 'dimensions' property for the universe in order to know the
      size of a data. This is required for saving each dimension value of a
      point.
      
      Added the signature of the 'remove_string_trailing_newline' method in
      the 'files_utils.h' file.
      
      Updated the 'open_file' method by adding a mode parameter.
      
      Renamed some variables for more clarity.
      b0da2dcd
  4. May 31, 2022
    • dario.genga's avatar
      Add import of data from file · c4ba6478
      dario.genga authored
      The universe can now be created from data in a text file.
      
      Added the files_utils who contains methods to open a file, count the
      number of lines and remove trailing newline.
      
      Added methods to create an empty kmeans universe and to initialize
      empty clusters array and points array.
      
      Added a method who create a point from a line in the text file.
      
      Fixed a memory leak caused by non freed point value.
      c4ba6478
  5. May 24, 2022
    • dario.genga's avatar
      Add create and destroy methods · 9f9276e5
      dario.genga authored
      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.
      9f9276e5
    • dario.genga's avatar
      Add structs and methods for kmeans · 916b9a01
      dario.genga authored
      916b9a01
  6. May 17, 2022
Loading