39 #ifndef __POSTERIORMODELBUILDER_H_
40 #define __POSTERIORMODELBUILDER_H_
45 #include "CommonTypes.h"
47 #include "DataManager.h"
48 #include "ModelBuilder.h"
49 #include "Representer.h"
50 #include "StatisticalModel.h"
74 typedef Representer<T> RepresenterType;
78 typedef typename RepresenterType::ValueType ValueType;
79 typedef typename RepresenterType::PointType PointType;
80 typedef typename StatisticalModelType::PointValueListType PointValueListType;
81 typedef typename DataManagerType::DataItemListType DataItemListType;
84 typedef MatrixType PointCovarianceMatrixType;
86 typedef typename StatisticalModelType::PointValuePairType PointValuePairType;
87 typedef typename std::pair<PointValuePairType, PointCovarianceMatrixType> PointValueWithCovariancePairType;
88 typedef typename std::list<PointValueWithCovariancePairType> PointValueWithCovarianceListType;
125 const PointValueListType& pointValues,
126 double pointValueNoiseVariance,
127 double noiseVariance)
const;
143 const PointValueWithCovarianceListType& pointValuesWithCovariance,
144 double noiseVariance)
const;
183 const PointValueWithCovarianceListType& pointValuesWithCovariance,
184 bool computeScores=
true)
const;
196 double pointValueNoiseVariance)
const;
208 #include "PosteriorModelBuilder.hxx"
Common base class for all the model builder classes.
Definition: ModelBuilder.h:54
Manages Training and Test Data for building Statistical Models and provides functionality for Crossva...
Definition: DataManager.h:114
static PosteriorModelBuilder * Create()
Definition: PosteriorModelBuilder.h:94
StatisticalModelType * BuildNewModel(const DataItemListType &dataItemList, const PointValueListType &pointValues, double pointValueNoiseVariance, double noiseVariance) const
Definition: PosteriorModelBuilder.hxx:65
StatisticalModelType * BuildNewModelFromModel(const StatisticalModelType *model, const PointValueListType &pointValues, double pointValueNoiseVariance, bool computeScores=true) const
Definition: PosteriorModelBuilder.hxx:76
PointValueWithCovarianceListType TrivialPointValueWithCovarianceListWithUniformNoise(const PointValueListType &pointValues, double pointValueNoiseVariance) const
Definition: PosteriorModelBuilder.hxx:88
virtual ~PosteriorModelBuilder()
Definition: PosteriorModelBuilder.h:110
A Point/Value pair that is used to specify a value at a given point.
Definition: StatisticalModel.h:100
Given a statistical model (prior) and a set of point constraints (likelihood), generate a new PCA mod...
Definition: PosteriorModelBuilder.h:71
void Delete()
Definition: PosteriorModelBuilder.h:103
ITK Wrapper for the statismo::StatisticalModel class.
Definition: itkStatisticalModel.h:62