Skip to content
Snippets Groups Projects
  • dario.genga's avatar
    c4ba6478
    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
    History
    Add import of data from file
    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.