Commit c4126b21 authored by Yann Jacquelet's avatar Yann Jacquelet
Browse files

Fix a bug in kmean1d.

	* green/mln/clustering/kmean1d.hh (kmean1d):
	Initialize _current_launching.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@4613 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 6ad6ec04
2009-10-07 Yann Jacquelet <jacquelet@lrde.epita.fr>
Fix a bug in kmean1d.
* green/mln/clustering/kmean1d.hh (kmean1d):
Initialize _current_launching.
2009-10-07 Yann Jacquelet <jacquelet@lrde.epita.fr>
Refactor the save_image_sh after the discution with Z.
......
......@@ -424,15 +424,18 @@ namespace mln
trace::entering("mln::clustering::kmean1d::kmean1d");
mln_precondition(point.is_valid());
_k_center = k_center;
_watch_dog = watch_dog;
_n_times = n_times;
_k_center = k_center;
_watch_dog = watch_dog;
_n_times = n_times;
_point = point;
_histo = data::compute(accu::meta::stat::histo1d(), _point);
_point = point;
_histo = data::compute(accu::meta::stat::histo1d(), _point);
// Results aren't valid since they aren't available
_is_number_valid = false;
_is_number_valid = false;
_current_step = 0;
_current_launching = 0;
_number.init_(box1d(point1d(0),point1d(_k_center-1)));
_mean.init_(box1d(point1d(0),point1d(_k_center-1)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment