Statismo  0.10.1
 All Classes Namespaces Functions Typedefs
Public Types | Public Member Functions | Static Public Member Functions | List of all members
statismo::ReducedVarianceModelBuilder< Representer > Class Template Reference

Builds a new model which retains only the specified total variance. More...

#include <ReducedVarianceModelBuilder.h>

Inheritance diagram for statismo::ReducedVarianceModelBuilder< Representer >:
Inheritance graph

Public Types

typedef ModelBuilder< Representer > Superclass
 
typedef
Superclass::StatisticalModelType 
StatisticalModelType
 
- Public Types inherited from statismo::ModelBuilder< Representer >
typedef Representer< Representer > RepresenterType
 
typedef StatisticalModel
< Representer > 
StatisticalModelType
 
typedef DataManager< Representer > DataManagerType
 
typedef
DataManagerType::DataItemListType 
DataItemListType
 

Public Member Functions

void Delete ()
 
virtual ~ReducedVarianceModelBuilder ()
 
StatisticalModelTypeBuildNewModelWithLeadingComponents (const StatisticalModelType *model, unsigned numberOfPrincipalComponents) const
 
StatisticalModelTypeBuildNewModelWithVariance (const StatisticalModelType *model, double totalVariance) const
 
is_deprecated
StatisticalModelType
BuildNewModelFromModel (const StatisticalModelType *model, double totalVariance) const
 

Static Public Member Functions

static
ReducedVarianceModelBuilder
Create ()
 

Additional Inherited Members

- Static Public Attributes inherited from statismo::ModelBuilder< Representer >
static const double TOLERANCE
 
- Protected Member Functions inherited from statismo::ModelBuilder< Representer >
MatrixType ComputeScores (const MatrixType &X, const StatisticalModelType *model) const
 
ModelInfo CollectModelInfo () const
 

Detailed Description

template<typename Representer>
class statismo::ReducedVarianceModelBuilder< Representer >

Builds a new model which retains only the specified total variance.

Constructor & Destructor Documentation

template<typename Representer >
virtual statismo::ReducedVarianceModelBuilder< Representer >::~ReducedVarianceModelBuilder ( )
inlinevirtual

The desctructor

Member Function Documentation

template<typename T >
ReducedVarianceModelBuilder< T >::StatisticalModelType * statismo::ReducedVarianceModelBuilder< T >::BuildNewModelWithLeadingComponents ( const StatisticalModelType model,
unsigned  numberOfPrincipalComponents 
) const

Build a new model from the given model, which retains only the leading principal components

Parameters
modelA statistical model.
numberOfPrincipalComponents,\returna new statistical model
Warning
The returned model needs to be explicitly deleted by the user of this method.
template<typename T >
ReducedVarianceModelBuilder< T >::StatisticalModelType * statismo::ReducedVarianceModelBuilder< T >::BuildNewModelWithVariance ( const StatisticalModelType model,
double  totalVariance 
) const

Build a new model from the given model, which retains only the specified variance

Parameters
modelA statistical model.
totalVariance,Thefraction of the variance to be retained
Returns
a new statistical model
Warning
The returned model needs to be explicitly deleted by the user of this method.
template<typename Representer >
static ReducedVarianceModelBuilder* statismo::ReducedVarianceModelBuilder< Representer >::Create ( )
inlinestatic

Factory method to create a new ReducedVarianceModelBuilder

template<typename Representer >
void statismo::ReducedVarianceModelBuilder< Representer >::Delete ( )
inline

Destroy the object. The same effect can be achieved by deleting the object in the usual way using the c++ delete keyword.


The documentation for this class was generated from the following files: