General Purpose Geodetic Library
SgParameterCfg Class Reference

#include <SgParameterCfg.h>

Inheritance diagram for SgParameterCfg:
SgAttribute

Public Types

enum  PMode {
  PM_NONE =0 , PM_GLB =1 , PM_ARC =2 , PM_LOC =3 ,
  PM_PWL =4 , PM_STC =5
}
 
enum  SType { ST_WHITENOISE =0 , ST_MARKOVPROCESS =1 , ST_RANDWALK =2 }
 
enum  Attributes { Attr_IS_PROPAGATED = 1<<0 , Attr_IS_CONSTRAINED = 1<<1 }
 

Public Member Functions

 SgParameterCfg ()
 
 SgParameterCfg (const QString &name, PMode pMode, SType sType, double convAPriori, double arcStep, double stocAPriori, double breakNoise, double tau, double whiteNoise, double pwlStep, double pwlAPriori, int pwlNumOfPolynomials, double scale=1.0, const QString &scaleName="unscaled")
 
 SgParameterCfg (const SgParameterCfg &p)
 
 ~SgParameterCfg ()
 
SgParameterCfgoperator= (const SgParameterCfg &a)
 
const QString & getName () const
 
PMode getPMode () const
 
SType getSType () const
 
double getConvAPriori () const
 
double getStocAPriori () const
 
double getPwlAPriori () const
 
double getBreakNoise () const
 
double getTau () const
 
double getWhiteNoise () const
 
double getPwlStep () const
 
int getPwlNumOfPolynomials () const
 
double getArcStep () const
 
double getScale () const
 
const QString & getScaleName () const
 
void setName (const QString &)
 
void setPMode (PMode mode)
 
void setSType (SType type)
 
void setConvAPriori (double)
 
void setStocAPriori (double)
 
void setPwlAPriori (double)
 
void setBreakNoise (double v)
 
void setTau (double tau)
 
void setWhiteNoise (double w)
 
void setPwlStep (double s)
 
void setPwlNumOfPolynomials (int n)
 
void setArcStep (double s)
 
void setScale (double s)
 
void setScaleName (const QString &units)
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 
- Public Member Functions inherited from SgAttribute
 SgAttribute ()
 
 SgAttribute (const SgAttribute &a)
 
 ~SgAttribute ()
 
SgAttributeoperator= (const SgAttribute &a)
 
unsigned int getAttributes () const
 
void setAttributes (unsigned int a)
 
void addAttr (uint a)
 
void delAttr (uint a)
 
void assignAttr (uint a, bool b)
 
void xorAttr (uint a)
 
bool isAttr (uint a) const
 
void clearAll ()
 

Static Public Member Functions

static const QString className ()
 
static const QString & type2String (SType)
 
static const QString & mode2String (PMode)
 
- Static Public Member Functions inherited from SgAttribute
static const QString className ()
 

Private Attributes

QString name_
 
PMode pMode_
 
SType sType_
 
double scale_
 Value of the scale factor. More...
 
QString scaleName_
 Name of the scale factor. More...
 
double convAPriori_
 a priori std. deviation (conventional pars) More...
 
double arcStep_
 a step for arc parameter More...
 
double pwlAPriori_
 a priori std. deviation (for pisewice linear B-coeffs) More...
 
double pwlStep_
 a step for modelling by picewise linear function More...
 
int pwlNumOfPolynomials_
 number of polynomials in the PWL model More...
 
double stocAPriori_
 a priori std. deviation (stochastic pars) More...
 
double breakNoise_
 psd of noise process used for "breaks" More...
 
double tau_
 time of relaxation More...
 
double whiteNoise_
 psd of ruled white noise More...
 

Detailed Description

SgParamaterCfg – a configuration for estimated parameter. ====================================================================================================

Definition at line 48 of file SgParameterCfg.h.

Member Enumeration Documentation

◆ Attributes

Enumerator
Attr_IS_PROPAGATED 

propagate the parameter in time;

Attr_IS_CONSTRAINED 

the parameter needs in constrains;

Definition at line 53 of file SgParameterCfg.h.

◆ PMode

Enumerator
PM_NONE 
PM_GLB 
PM_ARC 
PM_LOC 
PM_PWL 
PM_STC 

Definition at line 51 of file SgParameterCfg.h.

◆ SType

Enumerator
ST_WHITENOISE 
ST_MARKOVPROCESS 
ST_RANDWALK 

Definition at line 52 of file SgParameterCfg.h.

Constructor & Destructor Documentation

◆ SgParameterCfg() [1/3]

SgParameterCfg::SgParameterCfg ( )
inline

A constructor. Creates a default object.

Definition at line 283 of file SgParameterCfg.h.

References arcStep_, breakNoise_, convAPriori_, name_, PM_NONE, pMode_, pwlAPriori_, pwlNumOfPolynomials_, pwlStep_, scale_, scaleName_, ST_RANDWALK, stocAPriori_, sType_, tau_, and whiteNoise_.

◆ SgParameterCfg() [2/3]

SgParameterCfg::SgParameterCfg ( const QString &  name,
PMode  pMode,
SType  sType,
double  convAPriori,
double  arcStep,
double  stocAPriori,
double  breakNoise,
double  tau,
double  whiteNoise,
double  pwlStep,
double  pwlAPriori,
int  pwlNumOfPolynomials,
double  scale = 1.0,
const QString &  scaleName = "unscaled" 
)

A constructor. Creates a object.

Definition at line 48 of file SgParameterCfg.cpp.

References arcStep_, breakNoise_, convAPriori_, name_, pMode_, pwlAPriori_, pwlNumOfPolynomials_, pwlStep_, scale_, scaleName_, stocAPriori_, sType_, tau_, and whiteNoise_.

◆ SgParameterCfg() [3/3]

SgParameterCfg::SgParameterCfg ( const SgParameterCfg p)
inline

◆ ~SgParameterCfg()

SgParameterCfg::~SgParameterCfg ( )
inline

A destructor. Frees allocated memory.

Definition at line 333 of file SgParameterCfg.h.

Member Function Documentation

◆ className()

const QString SgParameterCfg::className ( )
static

Returns name of the class (for debug output).

Definition at line 40 of file SgParameterCfg.cpp.

Referenced by loadIntermediateResults(), and saveIntermediateResults().

◆ getArcStep()

double SgParameterCfg::getArcStep ( ) const
inline

◆ getBreakNoise()

double SgParameterCfg::getBreakNoise ( ) const
inline

Returns a value of a ruled white noise for a break for this type of parameters.

Definition at line 418 of file SgParameterCfg.h.

References breakNoise_.

Referenced by SgParameterCfg(), operator=(), and SgParameter::tune().

◆ getConvAPriori()

double SgParameterCfg::getConvAPriori ( ) const
inline

Returns a priori sigma for this type of parameters.

Definition at line 394 of file SgParameterCfg.h.

References convAPriori_.

Referenced by SgParameterCfg(), SgGuiParameterCfg::acquireData(), SgGuiParameterCfg::browseData(), operator=(), SgGuiParameterCfg::tab4RegularType(), and SgParameter::tune().

◆ getName()

const QString & SgParameterCfg::getName ( ) const
inline

Returns a name of the parameter configurator.

Definition at line 370 of file SgParameterCfg.h.

References name_.

Referenced by SgGuiParameterCfg::SgGuiParameterCfg(), SgParameterCfg(), and operator=().

◆ getPMode()

◆ getPwlAPriori()

◆ getPwlNumOfPolynomials()

int SgParameterCfg::getPwlNumOfPolynomials ( ) const
inline

Returns a number of polinomials in the model of picewise linear function.

Definition at line 450 of file SgParameterCfg.h.

References pwlNumOfPolynomials_.

Referenced by SgParameterCfg(), operator=(), and SgParameter::tune().

◆ getPwlStep()

◆ getScale()

◆ getScaleName()

const QString & SgParameterCfg::getScaleName ( ) const
inline

Returns a name of scale (i.e., units) for this type of parameters.

Definition at line 474 of file SgParameterCfg.h.

References scaleName_.

Referenced by SgParameterCfg(), operator=(), SgSolutionReporter::reportStochParameter(), SgGuiParameterCfg::tab4PWLType(), SgGuiParameterCfg::tab4RegularType(), and SgGuiParameterCfg::tab4StochasticType().

◆ getStocAPriori()

double SgParameterCfg::getStocAPriori ( ) const
inline

Returns a priori sigma for this type of parameters in stochastic case.

Definition at line 402 of file SgParameterCfg.h.

References stocAPriori_.

Referenced by SgParameterCfg(), SgGuiParameterCfg::acquireData(), SgGuiParameterCfg::browseData(), operator=(), SgGuiParameterCfg::tab4StochasticType(), and SgParameter::tune().

◆ getSType()

SgParameterCfg::SType SgParameterCfg::getSType ( ) const
inline

◆ getTau()

double SgParameterCfg::getTau ( ) const
inline

Returns a tau for this type of parameters.

Definition at line 426 of file SgParameterCfg.h.

References tau_.

Referenced by SgParameterCfg(), SgGuiParameterCfg::acquireData(), SgGuiParameterCfg::browseData(), operator=(), SgGuiParameterCfg::tab4StochasticType(), and SgParameter::tune().

◆ getWhiteNoise()

double SgParameterCfg::getWhiteNoise ( ) const
inline

Returns a density of ruled white noise for this type of parameters.

Definition at line 434 of file SgParameterCfg.h.

References whiteNoise_.

Referenced by SgParameterCfg(), SgGuiParameterCfg::acquireData(), SgGuiParameterCfg::browseData(), operator=(), SgGuiParameterCfg::tab4StochasticType(), and SgParameter::tune().

◆ loadIntermediateResults()

◆ mode2String()

const QString & SgParameterCfg::mode2String ( PMode  mode)
static

Definition at line 84 of file SgParameterCfg.cpp.

References modeNames.

◆ operator=()

◆ saveIntermediateResults()

◆ setArcStep()

void SgParameterCfg::setArcStep ( double  s)
inline

Sets up a value of the step for arc parameter.

Parameters
s– a new value;

Definition at line 570 of file SgParameterCfg.h.

References arcStep_.

Referenced by SgGuiParameterCfg::acquireData().

◆ setBreakNoise()

void SgParameterCfg::setBreakNoise ( double  v)
inline

Sets up a value of noise that will be injected in the case of break for this type of parameters.

Parameters
v– a value;

Definition at line 530 of file SgParameterCfg.h.

References breakNoise_.

◆ setConvAPriori()

void SgParameterCfg::setConvAPriori ( double  v)
inline

Sets up an a priori noise for this type of parameters (in conventional case).

Parameters
v– a value;

Definition at line 506 of file SgParameterCfg.h.

References convAPriori_.

Referenced by SgGuiParameterCfg::acquireData().

◆ setName()

void SgParameterCfg::setName ( const QString &  name)
inline

Sets up a name for this type of parameters.

Parameters
name– new name;

Definition at line 482 of file SgParameterCfg.h.

References name_.

◆ setPMode()

void SgParameterCfg::setPMode ( PMode  mode)
inline

Sets up a mode for this type of parameters.

Parameters
mode– a mode;

Definition at line 490 of file SgParameterCfg.h.

References pMode_.

Referenced by SgGuiParameterCfg::acquireData(), NsScrPrx4Session::dispatchChangeOfClocksParameterModel(), NsSessionEditDialog::dispatchChangeOfClocksParameterModel(), NsScrPrx4Session::dispatchChangeOfZenithParameterModel(), NsSessionEditDialog::dispatchChangeOfZenithParameterModel(), SgParametersDescriptor::setAtmGradMode(), SgParametersDescriptor::setAxisOffsetMode(), SgParametersDescriptor::setBlClockMode(), SgParametersDescriptor::setBlLengthMode(), SgParametersDescriptor::setCableMode(), SgParametersDescriptor::setClock0Mode(), SgParametersDescriptor::setClock1Mode(), SgParametersDescriptor::setClock2Mode(), SgParametersDescriptor::setClock3Mode(), SgGuiParameterCfg::setDefault(), SgParametersDescriptor::setMode(), SgParametersDescriptor::setMode4Parameter(), SgParametersDescriptor::setMode4Parameters(), SgParametersDescriptor::setPolusNutMode(), SgParametersDescriptor::setPolusNutRateMode(), SgParametersDescriptor::setPolusUT1Mode(), SgParametersDescriptor::setPolusUT1RateMode(), SgParametersDescriptor::setPolusXYMode(), SgParametersDescriptor::setPolusXYRateMode(), SgParametersDescriptor::setSrcCooMode(), SgParametersDescriptor::setSrcSsmMode(), SgParametersDescriptor::setStnCooMode(), SgParametersDescriptor::setStnVelMode(), SgParametersDescriptor::setTestMode(), SgParametersDescriptor::setZenithMode(), SgParametersDescriptor::unsetParameter(), and SgParametersDescriptor::unsetParameters().

◆ setPwlAPriori()

void SgParameterCfg::setPwlAPriori ( double  v)
inline

Sets up an a priori noise for this B-coeffs of PWL functions.

Parameters
v– a value;

Definition at line 522 of file SgParameterCfg.h.

References pwlAPriori_.

Referenced by SgGuiParameterCfg::acquireData(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), and SgAgvDriver::initSession().

◆ setPwlNumOfPolynomials()

void SgParameterCfg::setPwlNumOfPolynomials ( int  n)
inline

Sets up a number of polinomials in the model of picewise linear function.

Parameters
n– a new value;

Definition at line 562 of file SgParameterCfg.h.

References pwlNumOfPolynomials_.

◆ setPwlStep()

void SgParameterCfg::setPwlStep ( double  s)
inline

Sets up a value of the step for modelling by picewise linear function.

Parameters
s– a new value;

Definition at line 554 of file SgParameterCfg.h.

References pwlStep_.

Referenced by SgGuiParameterCfg::acquireData(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), and SgAgvDriver::initSession().

◆ setScale()

void SgParameterCfg::setScale ( double  s)
inline

Sets up a scale factor for this type of parameters.

Parameters
s– a scale;

Definition at line 578 of file SgParameterCfg.h.

References scale_.

◆ setScaleName()

void SgParameterCfg::setScaleName ( const QString &  units)
inline

Sets up a scale name for this type of parameters.

Parameters
units– new scale name;

Definition at line 586 of file SgParameterCfg.h.

References scaleName_.

◆ setStocAPriori()

void SgParameterCfg::setStocAPriori ( double  v)
inline

Sets up an a priori noise for this type of parameters (in stochastic case).

Parameters
v– a value;

Definition at line 514 of file SgParameterCfg.h.

References stocAPriori_.

Referenced by SgGuiParameterCfg::acquireData().

◆ setSType()

void SgParameterCfg::setSType ( SType  type)
inline

Sets up a type for this type of parameters.

Parameters
type– a type;

Definition at line 498 of file SgParameterCfg.h.

References sType_.

Referenced by SgGuiParameterCfg::acquireData().

◆ setTau()

void SgParameterCfg::setTau ( double  tau)
inline

Sets up a relaxation time for this type of parameters.

Parameters
tau– a new value;

Definition at line 538 of file SgParameterCfg.h.

References tau_.

Referenced by SgGuiParameterCfg::acquireData().

◆ setWhiteNoise()

void SgParameterCfg::setWhiteNoise ( double  w)
inline

Sets up a value of the density of ruled white noise for this type of parameters.

Parameters
w– a new value;

Definition at line 546 of file SgParameterCfg.h.

References whiteNoise_.

Referenced by SgGuiParameterCfg::acquireData().

◆ type2String()

const QString & SgParameterCfg::type2String ( SType  type)
static

Definition at line 76 of file SgParameterCfg.cpp.

References typeNames.

Member Data Documentation

◆ arcStep_

double SgParameterCfg::arcStep_
private

a step for arc parameter

Definition at line 253 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getArcStep(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setArcStep().

◆ breakNoise_

double SgParameterCfg::breakNoise_
private

psd of noise process used for "breaks"

Definition at line 260 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getBreakNoise(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setBreakNoise().

◆ convAPriori_

double SgParameterCfg::convAPriori_
private

a priori std. deviation (conventional pars)

Definition at line 252 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getConvAPriori(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setConvAPriori().

◆ name_

QString SgParameterCfg::name_
private

◆ pMode_

PMode SgParameterCfg::pMode_
private

◆ pwlAPriori_

double SgParameterCfg::pwlAPriori_
private

a priori std. deviation (for pisewice linear B-coeffs)

Definition at line 255 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getPwlAPriori(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setPwlAPriori().

◆ pwlNumOfPolynomials_

int SgParameterCfg::pwlNumOfPolynomials_
private

number of polynomials in the PWL model

Definition at line 257 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getPwlNumOfPolynomials(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setPwlNumOfPolynomials().

◆ pwlStep_

double SgParameterCfg::pwlStep_
private

a step for modelling by picewise linear function

Definition at line 256 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getPwlStep(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setPwlStep().

◆ scale_

double SgParameterCfg::scale_
private

Value of the scale factor.

Definition at line 249 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getScale(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setScale().

◆ scaleName_

QString SgParameterCfg::scaleName_
private

Name of the scale factor.

Definition at line 250 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getScaleName(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setScaleName().

◆ stocAPriori_

double SgParameterCfg::stocAPriori_
private

a priori std. deviation (stochastic pars)

Definition at line 259 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getStocAPriori(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setStocAPriori().

◆ sType_

SType SgParameterCfg::sType_
private

◆ tau_

double SgParameterCfg::tau_
private

time of relaxation

Definition at line 261 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getTau(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setTau().

◆ whiteNoise_

double SgParameterCfg::whiteNoise_
private

psd of ruled white noise

Definition at line 262 of file SgParameterCfg.h.

Referenced by SgParameterCfg(), getWhiteNoise(), loadIntermediateResults(), operator=(), saveIntermediateResults(), and setWhiteNoise().


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