General Purpose Geodetic Library
SgPartial Class Reference

#include <SgPartial.h>

Inheritance diagram for SgPartial:
SgAttribute SgParameter

Public Types

enum  Attributes {
  Attr_IS_BREAK = 1<<0 , Attr_IS_PROPAGATED = 1<<1 , Attr_IS_IN_RUN = 1<<2 , Attr_IS_PARTIAL_SET = 1<<3 ,
  Attr_IS_SPECIAL = 1<<4
}
 
enum  DataDomain { DD_OFFSET = 0 , DD_RATE = 1 }
 

Public Member Functions

 SgPartial ()
 
 SgPartial (const SgPartial &p)
 
 SgPartial (const QString &name)
 
 ~SgPartial ()
 
SgPartialoperator= (const SgPartial &a)
 
const QString & getName () const
 
DataDomain getDataDomain () const
 
double getD () const
 
int getNumObs () const
 
int getNumSes () const
 
const SgMJDgetTStart () const
 
const SgMJDgetTFinis () const
 
const SgMJDgetTCurrent () const
 
void setName (const QString &name)
 
void setD (double d)
 
void setDataDomain (DataDomain domain)
 
void setNumObs (int n)
 
void setNumSes (int n)
 
void setTStart (const SgMJD &t)
 
void setTFinis (const SgMJD &t)
 
void resetStatistics ()
 
void updateStatistics (const SgMJD &t, double weight)
 
void zerofy ()
 
SgMJD getTMean (const SgMJD &=tZero) const
 
- 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 Public Member Functions inherited from SgAttribute
static const QString className ()
 

Private Attributes

QString name_
 name of a derivation; More...
 
DataDomain dataDomain_
 
double d_
 value of a derivation; More...
 
int numObs_
 number of points per derivation; More...
 
int numSes_
 number of sessions per derivation; More...
 
SgMJD tStart_
 MJD of the first measurement;. More...
 
SgMJD tFinis_
 MJD of the last measurement;. More...
 
double twSum_
 the weighted sum of epochs of observation; More...
 
double wSum_
 the sum of weights of observations; More...
 

Detailed Description

SgPartial – a top part of SgParameter that estimator needs to know. ====================================================================================================

Definition at line 45 of file SgPartial.h.

Member Enumeration Documentation

◆ Attributes

Enumerator
Attr_IS_BREAK 

there is a break in the parameter's behavior

Attr_IS_PROPAGATED 

the parameter's info have to be propagated in future

Attr_IS_IN_RUN 
Attr_IS_PARTIAL_SET 

rise this bit on when the partial is assigned

Attr_IS_SPECIAL 

for estimator use

Definition at line 48 of file SgPartial.h.

◆ DataDomain

Enumerator
DD_OFFSET 
DD_RATE 

Definition at line 56 of file SgPartial.h.

Constructor & Destructor Documentation

◆ SgPartial() [1/3]

SgPartial::SgPartial ( )
inline

A constructor. Creates a default object.

Definition at line 219 of file SgPartial.h.

References d_, dataDomain_, DD_OFFSET, numObs_, numSes_, twSum_, and wSum_.

◆ SgPartial() [2/3]

SgPartial::SgPartial ( const SgPartial p)
inline

A constructor. Creates a copy of an object.

Parameters
a– a attribute to be copied.

Definition at line 253 of file SgPartial.h.

References d_, dataDomain_, getD(), getDataDomain(), getNumObs(), getNumSes(), numObs_, numSes_, twSum_, and wSum_.

◆ SgPartial() [3/3]

SgPartial::SgPartial ( const QString &  name)
inline

A constructor. Creates a defult object with a name.

Parameters
mname– a name.

Definition at line 236 of file SgPartial.h.

References d_, dataDomain_, DD_OFFSET, numObs_, numSes_, twSum_, and wSum_.

◆ ~SgPartial()

SgPartial::~SgPartial ( )
inline

A destructor. Frees allocated memory.

Definition at line 271 of file SgPartial.h.

Member Function Documentation

◆ className()

const QString SgPartial::className ( )
static

Returns name of the class (for debug output).

Definition at line 36 of file SgPartial.cpp.

◆ getD()

◆ getDataDomain()

◆ getName()

◆ getNumObs()

◆ getNumSes()

int SgPartial::getNumSes ( ) const
inline

Returns a number of sessions.

Definition at line 307 of file SgPartial.h.

References numSes_.

Referenced by SgPartial(), and operator=().

◆ getTCurrent()

const SgMJD & SgPartial::getTCurrent ( ) const
inline

Returns an epoch of the current observation.

Definition at line 331 of file SgPartial.h.

References tFinis_.

◆ getTFinis()

const SgMJD & SgPartial::getTFinis ( ) const
inline

Returns an epoch of the last observation.

Definition at line 323 of file SgPartial.h.

References tFinis_.

Referenced by operator=(), and reportParameterList().

◆ getTMean()

◆ getTStart()

const SgMJD & SgPartial::getTStart ( ) const
inline

Returns an epoch of the first observation.

Definition at line 315 of file SgPartial.h.

References tStart_.

Referenced by operator=(), and reportParameterList().

◆ operator=()

SgPartial & SgPartial::operator= ( const SgPartial a)

◆ resetStatistics()

void SgPartial::resetStatistics ( )
inline

Resets current statistics.

Definition at line 395 of file SgPartial.h.

References numObs_, numSes_, tFinis_, tStart_, twSum_, tZero, and wSum_.

Referenced by SgParameter::resetStatistics().

◆ setD()

◆ setDataDomain()

void SgPartial::setDataDomain ( DataDomain  domain)
inline

Definition at line 133 of file SgPartial.h.

References dataDomain_.

Referenced by operator=().

◆ setName()

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

Sets up a name of the derivative.

Parameters
name– a name;

Definition at line 339 of file SgPartial.h.

References name_.

Referenced by SgArcStorage::deployParameters(), SgPwlStorageBSplineL::deployParameters(), SgPwlStorageBSplineQ::deployParameters(), SgPwlStorageIncRates::deployParameters(), and operator=().

◆ setNumObs()

void SgPartial::setNumObs ( int  n)
inline

◆ setNumSes()

void SgPartial::setNumSes ( int  n)
inline

Sets a number of sessions.

Parameters
n– a number of sessions;

Definition at line 364 of file SgPartial.h.

References numSes_.

Referenced by operator=().

◆ setTFinis()

void SgPartial::setTFinis ( const SgMJD t)
inline

Sets up an epoch of the last observation.

Parameters
t– a new epoch;

Definition at line 380 of file SgPartial.h.

References tFinis_.

Referenced by operator=().

◆ setTStart()

void SgPartial::setTStart ( const SgMJD t)
inline

Sets up an epoch of the first observation.

Parameters
t– a new epoch;

Definition at line 372 of file SgPartial.h.

References tStart_.

Referenced by operator=().

◆ updateStatistics()

void SgPartial::updateStatistics ( const SgMJD t,
double  weight 
)

Updates current statistics.

Parameters
t– an epoch of the observations;
weight– a weight of the observations;

Definition at line 62 of file SgPartial.cpp.

References Attr_IS_PARTIAL_SET, SgAttribute::isAttr(), numObs_, tFinis_, tInf, SgMJD::toDouble(), tStart_, twSum_, tZero, and wSum_.

Referenced by SgEstimator::processObs().

◆ zerofy()

Member Data Documentation

◆ d_

double SgPartial::d_
private

value of a derivation;

Definition at line 192 of file SgPartial.h.

Referenced by SgPartial(), getD(), setD(), and zerofy().

◆ dataDomain_

DataDomain SgPartial::dataDomain_
private

Definition at line 191 of file SgPartial.h.

Referenced by SgPartial(), getDataDomain(), and setDataDomain().

◆ name_

QString SgPartial::name_
private

name of a derivation;

Definition at line 190 of file SgPartial.h.

Referenced by getName(), and setName().

◆ numObs_

int SgPartial::numObs_
private

number of points per derivation;

Definition at line 193 of file SgPartial.h.

Referenced by SgPartial(), getNumObs(), getTMean(), resetStatistics(), setNumObs(), and updateStatistics().

◆ numSes_

int SgPartial::numSes_
private

number of sessions per derivation;

Definition at line 194 of file SgPartial.h.

Referenced by SgPartial(), getNumSes(), resetStatistics(), and setNumSes().

◆ tFinis_

SgMJD SgPartial::tFinis_
private

MJD of the last measurement;.

Definition at line 196 of file SgPartial.h.

Referenced by getTCurrent(), getTFinis(), resetStatistics(), setTFinis(), and updateStatistics().

◆ tStart_

SgMJD SgPartial::tStart_
private

MJD of the first measurement;.

Definition at line 195 of file SgPartial.h.

Referenced by getTStart(), resetStatistics(), setTStart(), and updateStatistics().

◆ twSum_

double SgPartial::twSum_
private

the weighted sum of epochs of observation;

Definition at line 197 of file SgPartial.h.

Referenced by SgPartial(), getTMean(), operator=(), resetStatistics(), and updateStatistics().

◆ wSum_

double SgPartial::wSum_
private

the sum of weights of observations;

Definition at line 198 of file SgPartial.h.

Referenced by SgPartial(), getTMean(), operator=(), resetStatistics(), and updateStatistics().


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