1. 07 Oct, 2009 2 commits
  2. 01 Oct, 2009 1 commit
    • Yann Jacquelet's avatar
      Fix behaviour when empty class appears. Fix methods order of the · 1537be32
      Yann Jacquelet authored
      	kmean1d loop.
      
      	* green/mln/clustering/kmean1d.hh
      	(update_kmean, launch_one_time, is_valid, is_descent_valid): Introduce
      	_is_number_valid which turns to false when empty class appears.
      
      	* green/mln/clustering/kmean1d.hh
      	(launch_one_time): Fix method call order in kmean's loop.
      
      	* green/mln/clustering/kmean1d.hh
      	(launch_n_times): Introduce nb_tries that garanties to be infinite
      	loop safe.
      
      	Update kmean.launch_n_times method call.
      
      	* green/demo/clustering/kmean1d/kmean1d.cc
      	(do_demo): Add comments.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@4588 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1537be32
  3. 29 Sep, 2009 1 commit
    • Yann Jacquelet's avatar
      Prepare kmean demo for theo. Work in progress. · 50a59cd1
      Yann Jacquelet authored
      	Fix bugs, add hooks for tracing convergence.
      
      	* green/mln/clustering/kmean1d.hh: Evict k parameter from template
      	and replace it by a constructor parameter. Add printing for debugging.
      	* green/mln/clustering/kmean1d.hh (update_variance): Fix bugs.
      	* green/mln/clustering/kmean1d.hh
      	(build_all_dbg, build_mean_dbg, update_cnv, finalize_cnv): New methods.
      	* green/mln/clustering/kmean1d.hh (launch_one_time): Fix bugs.
      	* green/mln/clustering/kmean1d.hh (launch_n_times): Add hooks.
      
      	Do some works for managing shell parameters while executing the binary.
      
      	* green/demo/clustering/kmean1d/kmean1d.cc
      	(main, char_to_string, char_to_unsigned, demo, do_demo): New methods.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@4564 4aad255d-cdde-0310-9447-f3009e2ae8c0
      50a59cd1
  4. 28 Sep, 2009 1 commit
    • Yann Jacquelet's avatar
      Prepare kmean demo for theo. Work in progress. · fc7b7d50
      Yann Jacquelet authored
      	* green/mln/clustering/kmean1d.hh: New library file.
      
      	* green/demo/clustering/kmean1d: New directory.
      	* green/demo/clustering/kmean1d/Makefile.am: New makefile.
      	* green/demo/clustering/kmean1d/kmean1d.cc: New demo.
      
      	* green/tests/clustering/kmean1d: New directory.
      	* green/tests/clustering/kmean1d/Makefile.am: New makefile.
      	* green/tests/clustering/kmean1d/kmean1d.cc: New unitary tests.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@4562 4aad255d-cdde-0310-9447-f3009e2ae8c0
      fc7b7d50