Skip to content

shapeworks::LinearRegressionShapeMatrix

Inherits from shapeworks::LegacyShapeMatrix, vnl_matrix< double >, shapeworks::Observer

Public Types

Name
typedef double DataType
typedef LinearRegressionShapeMatrix Self
typedef LegacyShapeMatrix Superclass
typedef itk::SmartPointer< Self > Pointer
typedef itk::SmartPointer< const Self > ConstPointer
typedef itk::WeakPointer< const Self > ConstWeakPointer

Public Functions

Name
itkNewMacro(Self )
itkTypeMacro(LinearRegressionShapeMatrix , LegacyShapeMatrix )
void UpdateMeanMatrix()
vnl_vector< double > ComputeMean(double k) const
void ResizeParameters(unsigned int n)
virtual void ResizeMeanMatrix(int rs, int cs)
void ResizeExplanatory(unsigned int n)
virtual void DomainAddEventCallback(Object * , const itk::EventObject & e)
virtual void PositionAddEventCallback(Object * o, const itk::EventObject & e)
virtual void PositionSetEventCallback(Object * o, const itk::EventObject & e)
virtual void PositionRemoveEventCallback(Object * , const itk::EventObject & )
void SetDomainsPerShape(int i)
int GetDomainsPerShape() const
void SetExplanatory(std::vector< double > v)
void SetExplanatory(unsigned int i, double q)
const double & GetExplanatory(unsigned int i) const
double & GetExplanatory(unsigned int i)
const vnl_vector< double > & GetSlope() const
const vnl_vector< double > & GetIntercept() const
void SetSlope(const std::vector< double > & v)
void SetIntercept(const std::vector< double > & v)
void EstimateParameters()
void Initialize()
virtual void BeforeIteration()
void SetRegressionInterval(int i)
int GetRegressionInterval() const

Protected Functions

Name
LinearRegressionShapeMatrix()
virtual ~LinearRegressionShapeMatrix()
void PrintSelf(std::ostream & os, itk::Indent indent) const

Additional inherited members

Public Functions inherited from shapeworks::LegacyShapeMatrix

Name
virtual void ResizeMatrix(int rs, int cs)
void PrintMatrix()
bool CheckForNans()
virtual void AfterIteration()
virtual void SetMatrix(const vnl_matrix< double > & m)

Protected Functions inherited from shapeworks::LegacyShapeMatrix

Name
LegacyShapeMatrix()
virtual ~LegacyShapeMatrix()

Protected Attributes inherited from shapeworks::LegacyShapeMatrix

Name
int m_DomainsPerShape

Public Classes inherited from shapeworks::Observer

Name
struct DefinedCallbacksStruct

Public Functions inherited from shapeworks::Observer

Name
virtual void TransformSetEventCallback(Object * , const itk::EventObject & )
virtual void PrefixTransformSetEventCallback(Object * , const itk::EventObject & )
virtual void NeighborhoodSetEventCallback(Object * , const itk::EventObject & )

Protected Functions inherited from shapeworks::Observer

Name
Observer()
virtual ~Observer()

Public Attributes inherited from shapeworks::Observer

Name
DefinedCallbacksStruct m_DefinedCallbacks

Public Types Documentation

typedef DataType

typedef double shapeworks::LinearRegressionShapeMatrix::DataType;

Standard class typedefs

typedef Self

typedef LinearRegressionShapeMatrix shapeworks::LinearRegressionShapeMatrix::Self;

typedef Superclass

typedef LegacyShapeMatrix shapeworks::LinearRegressionShapeMatrix::Superclass;

typedef Pointer

typedef itk::SmartPointer<Self> shapeworks::LinearRegressionShapeMatrix::Pointer;

typedef ConstPointer

typedef itk::SmartPointer<const Self> shapeworks::LinearRegressionShapeMatrix::ConstPointer;

typedef ConstWeakPointer

typedef itk::WeakPointer<const Self> shapeworks::LinearRegressionShapeMatrix::ConstWeakPointer;

Public Functions Documentation

function itkNewMacro

itkNewMacro(
    Self 
)

Method for creation through the object factory.

function itkTypeMacro

itkTypeMacro(
    LinearRegressionShapeMatrix ,
    LegacyShapeMatrix 
)

Run-time type information (and related methods).

function UpdateMeanMatrix

inline void UpdateMeanMatrix()

function ComputeMean

inline vnl_vector< double > ComputeMean(
    double k
) const

function ResizeParameters

inline void ResizeParameters(
    unsigned int n
)

function ResizeMeanMatrix

inline virtual void ResizeMeanMatrix(
    int rs,
    int cs
)

function ResizeExplanatory

inline void ResizeExplanatory(
    unsigned int n
)

function DomainAddEventCallback

inline virtual void DomainAddEventCallback(
    Object * ,
    const itk::EventObject & e
)

Reimplements: shapeworks::LegacyShapeMatrix::DomainAddEventCallback

Callbacks that may be defined by a subclass. If a subclass defines one of these callback methods, the corresponding flag in m_DefinedCallbacks should be set to true so that the ParticleSystem will know to register the appropriate event with this method.

function PositionAddEventCallback

inline virtual void PositionAddEventCallback(
    Object * o,
    const itk::EventObject & e
)

Reimplements: shapeworks::LegacyShapeMatrix::PositionAddEventCallback

function PositionSetEventCallback

inline virtual void PositionSetEventCallback(
    Object * o,
    const itk::EventObject & e
)

Reimplements: shapeworks::LegacyShapeMatrix::PositionSetEventCallback

function PositionRemoveEventCallback

inline virtual void PositionRemoveEventCallback(
    Object * ,
    const itk::EventObject & 
)

Reimplements: shapeworks::LegacyShapeMatrix::PositionRemoveEventCallback

function SetDomainsPerShape

inline void SetDomainsPerShape(
    int i
)

Set/Get the number of domains per shape. This can only be safely done before shapes are initialized with points!

function GetDomainsPerShape

inline int GetDomainsPerShape() const

function SetExplanatory

inline void SetExplanatory(
    std::vector< double > v
)

function SetExplanatory

inline void SetExplanatory(
    unsigned int i,
    double q
)

function GetExplanatory

inline const double & GetExplanatory(
    unsigned int i
) const

function GetExplanatory

inline double & GetExplanatory(
    unsigned int i
)

function GetSlope

inline const vnl_vector< double > & GetSlope() const

function GetIntercept

inline const vnl_vector< double > & GetIntercept() const

function SetSlope

inline void SetSlope(
    const std::vector< double > & v
)

function SetIntercept

inline void SetIntercept(
    const std::vector< double > & v
)

function EstimateParameters

inline void EstimateParameters()

function Initialize

inline void Initialize()

function BeforeIteration

inline virtual void BeforeIteration()

Reimplements: shapeworks::LegacyShapeMatrix::BeforeIteration

function SetRegressionInterval

inline void SetRegressionInterval(
    int i
)

function GetRegressionInterval

inline int GetRegressionInterval() const

Protected Functions Documentation

function LinearRegressionShapeMatrix

inline LinearRegressionShapeMatrix()

function ~LinearRegressionShapeMatrix

inline virtual ~LinearRegressionShapeMatrix()

function PrintSelf

inline void PrintSelf(
    std::ostream & os,
    itk::Indent indent
) const

Updated on 2024-07-14 at 17:07:24 +0000