STK++ 0.9.13
STK::DiagGaussian_muj_sjParameters Struct Reference

Structure encapsulating the parameters of a DiagGaussian_muj_sj model. More...

#include <STK_ModelDiagGaussian_muj_sj.h>

Public Member Functions

 DiagGaussian_muj_sjParameters ()
 default constructor
 
 DiagGaussian_muj_sjParameters (Range const &range)
 default constructor
 
 DiagGaussian_muj_sjParameters (DiagGaussian_muj_sjParameters const &param)
 copy constructor.
 
 ~DiagGaussian_muj_sjParameters ()
 destructor
 
CPointX constmu () const
 
CPointX constsigma () const
 
Real const mu (int j) const
 
Real const sigma (int j) const
 
void resize (Range const &range)
 resize the parameters only if the range is modified, otherwise, stay with the current values.
 

Public Attributes

CPointX mu_
 
CPointX sigma_
 
Range range_
 

Detailed Description

Structure encapsulating the parameters of a DiagGaussian_muj_sj model.

Definition at line 78 of file STK_ModelDiagGaussian_muj_sj.h.

Constructor & Destructor Documentation

◆ DiagGaussian_muj_sjParameters() [1/3]

STK::DiagGaussian_muj_sjParameters::DiagGaussian_muj_sjParameters ( )
inline

◆ DiagGaussian_muj_sjParameters() [2/3]

STK::DiagGaussian_muj_sjParameters::DiagGaussian_muj_sjParameters ( Range const range)
inline

default constructor

Definition at line 83 of file STK_ModelDiagGaussian_muj_sj.h.

83: mu_(range, 0.), sigma_(range, 1.) {}

◆ DiagGaussian_muj_sjParameters() [3/3]

STK::DiagGaussian_muj_sjParameters::DiagGaussian_muj_sjParameters ( DiagGaussian_muj_sjParameters const param)
inline

copy constructor.

Parameters
paramthe parameters to copy.

Definition at line 85 of file STK_ModelDiagGaussian_muj_sj.h.

86 : mu_(param.mu_)
87 , sigma_(param.sigma_)
88 {}

◆ ~DiagGaussian_muj_sjParameters()

STK::DiagGaussian_muj_sjParameters::~DiagGaussian_muj_sjParameters ( )
inline

destructor

Definition at line 90 of file STK_ModelDiagGaussian_muj_sj.h.

90{}

Member Function Documentation

◆ mu() [1/2]

CPointX const & STK::DiagGaussian_muj_sjParameters::mu ( ) const
inline
Returns
the means

Definition at line 93 of file STK_ModelDiagGaussian_muj_sj.h.

93{ return mu_;}

References mu_.

Referenced by STK::ModelDiagGaussian_muj_sj< Data_, WColVector_ >::mean().

◆ mu() [2/2]

Real const STK::DiagGaussian_muj_sjParameters::mu ( int  j) const
inline
Returns
the mean of the jth law

Definition at line 98 of file STK_ModelDiagGaussian_muj_sj.h.

98{ return mu_[j];}

References mu_.

◆ resize()

void STK::DiagGaussian_muj_sjParameters::resize ( Range const range)
inline

resize the parameters only if the range is modified, otherwise, stay with the current values.

Parameters
rangethe range of the parameters (= range of the variables of the model)

Definition at line 106 of file STK_ModelDiagGaussian_muj_sj.h.

107 {
108 if (range != range_)
109 {
110 mu_.resize(range); sigma_.resize(range);
111 range_ = range;
112 }
113 }
Derived & resize(Range const &I, Range const &J)
resize the Array.

References mu_, range_, STK::ICArray< Derived >::resize(), and sigma_.

◆ sigma() [1/2]

CPointX const & STK::DiagGaussian_muj_sjParameters::sigma ( ) const
inline
Returns
the mean of the jth law

Definition at line 95 of file STK_ModelDiagGaussian_muj_sj.h.

95{ return sigma_;}

References sigma_.

Referenced by STK::ModelDiagGaussian_muj_sj< Data_, WColVector_ >::sigma().

◆ sigma() [2/2]

Real const STK::DiagGaussian_muj_sjParameters::sigma ( int  j) const
inline
Returns
the standard deviation of the jth law

Definition at line 100 of file STK_ModelDiagGaussian_muj_sj.h.

100{ return sigma_[j];}

References sigma_.

Member Data Documentation

◆ mu_

CPointX STK::DiagGaussian_muj_sjParameters::mu_

Definition at line 114 of file STK_ModelDiagGaussian_muj_sj.h.

Referenced by mu(), mu(), and resize().

◆ range_

Range STK::DiagGaussian_muj_sjParameters::range_

Definition at line 116 of file STK_ModelDiagGaussian_muj_sj.h.

Referenced by resize().

◆ sigma_

CPointX STK::DiagGaussian_muj_sjParameters::sigma_

Definition at line 115 of file STK_ModelDiagGaussian_muj_sj.h.

Referenced by resize(), sigma(), and sigma().


The documentation for this struct was generated from the following file: