18 #ifndef __itkMixtureModelComponentBase_h
19 #define __itkMixtureModelComponentBase_h
21 #include "vnl/vnl_vector.h"
22 #include "vnl/vnl_matrix.h"
55 template<
class TSample >
82 virtual void SetSample(
const TSample *sample);
85 const TSample * GetSample()
const;
93 void SetMinimalParametersChange(
double change)
95 m_MinimalParametersChange = change;
98 double GetMinimalParametersChange()
100 return m_MinimalParametersChange;
103 virtual void SetParameters(
const ParametersType & parameters);
112 void AreParametersModified(
bool flag);
115 bool AreParametersModified();
118 void SetWeight(
unsigned int index,
double value);
121 double GetWeight(
unsigned int index)
const;
124 double Evaluate(MeasurementVectorType & measurements);
127 itkGetConstReferenceMacro(Weights, WeightArrayType);
129 virtual void Update();
134 void PrintSelf(std::ostream & os,
Indent indent)
const;
139 void SetMembershipFunction(MembershipFunctionType *
function);
141 virtual void GenerateData() = 0;
163 #ifndef ITK_MANUAL_INSTANTIATION
164 #include "itkMixtureModelComponentBase.hxx"