[Insight-users] itkExpectationMaximization

Luis Ibanez luis.ibanez@kitware.com
Fri, 25 Oct 2002 10:28:22 -0400


Hi Ahmad,


The ExpectationMaximizationMixtureModelEstimator
has a method for setting the Initial proportions,
not the final ones.  The Initial proportions are
the apriori information that you provide to the
estimator.


You can verify that you can Set/Get the Initial
proportions and only Get the final ones.

http://www.itk.org/Insight/Doxygen/html/classitk_1_1Statistics_1_1ExpectationMaximizationMixtureModelEstimator.html

Here are the signature of the relevent methods

   void SetInitialProportions (ProportionVectorType &propotion);
   ProportionVectorType * GetInitialProportions ();
   ProportionVectorType * GetProportions ();

The array is not 2D, it is 1D of variable size.
The type is an itk::Array< double > which can have as
many components as your computer memory allows.
The actual size of the array will depend on the
number of components you add to the estimator using
the AddComponent() method.


Please let us know if you have futher questions,

   Thanks


      Luis


-------------------------------------------

ahmad bukhari wrote:
>  hi everyone?! 
> why does the test code set the true parameters if is 
> supposed to be returned by estimator....firstly and 
> secondly the arrys seem to be 2D rather than a one D 
> array of weightages....as previously stated to someone 
> else'e query... 
> please help 
> ahmad 
>