General Purpose Geodetic Library
SgParameterBreak Class Reference

#include <SgBreakModel.h>

Inheritance diagram for SgParameterBreak:
SgMJD SgAttribute

Public Types

enum  Attributes { Attr_NOT_VALID = 1<<0 , Attr_MODIFIED = 1<<1 , Attr_DYNAMIC = 1<<2 }
 
- Public Types inherited from SgMJD
enum  Format {
  F_Verbose , F_VerboseLong , F_YYYYMMDDHHMMSSSS , F_Simple ,
  F_YYYYMMDDSSSSSS , F_YYYYMMDDDD , F_INTERNAL , F_ECCDAT ,
  F_SOLVE_SPLFL , F_SOLVE_SPLFL_V2 , F_SOLVE_SPLFL_V3 , F_SOLVE_SPLFL_SHORT ,
  F_SOLVE_SPLFL_LONG , F_FS_LOG , F_MJD , F_UNIX ,
  F_SINEX , F_ISO , F_RFC2822 , F_Date ,
  F_DDMonYYYY , F_YYYYMMDD , F_yyyymmdd , F_YYYYMonDD ,
  F_YYMonDD , F_Year , F_SINEX_S , F_Time ,
  F_HHMMSS , F_TimeShort
}
 

Public Member Functions

 SgParameterBreak ()
 
 SgParameterBreak (const SgParameterBreak &)
 
 SgParameterBreak (const SgMJD &t, double a0=0.0, double a1=0.0, double a2=0.0, bool isDynamic=false)
 
 ~SgParameterBreak ()
 
SgParameterBreakoperator= (const SgParameterBreak &b)
 
double getA0 () const
 
double getA1 () const
 
double getA2 () const
 
double getS0 () const
 
double getS1 () const
 
double getS2 () const
 
const SgMJDgetEpoch4Export () const
 
void setA0 (double a)
 
void setA1 (double a)
 
void setA2 (double a)
 
void setS0 (double a)
 
void setS1 (double a)
 
void setS2 (double a)
 
void setEpoch4Export (const SgMJD &)
 
SgParameterpA0 ()
 
SgParameterpA1 ()
 
SgParameterpA2 ()
 
const SgParameterpA0 () const
 
const SgParameterpA1 () const
 
const SgParameterpA2 () const
 
double value (const SgMJD &t, double dT) const
 
double rate (const SgMJD &t, double dT) const
 
void createParameters (const QString &prefix)
 
void releaseParameters ()
 
void propagatePartials (QList< SgParameter * > &parameters, const SgMJD &t, double tau, double sign)
 
void propagatePartials4rates (QList< SgParameter * > &parameters, const SgMJD &t, double tau, double sign)
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 
- Public Member Functions inherited from SgMJD
 SgMJD ()
 
 SgMJD (double epoch)
 
 SgMJD (const SgMJD &MJD)
 
 SgMJD (int nDay, double dTime)
 
 SgMJD (int nYear, int nMonth, int nDay, int nHour=0, int nMin=0, double dSec=0.0)
 
 SgMJD (const QDateTime &)
 
 ~SgMJD ()
 
SgMJDoperator= (const SgMJD &T)
 
int getDate () const
 
double getTime () const
 
void setDate (int nDays)
 
void setTime (double dTime)
 
QDateTime toQDateTime () const
 
QString className () const
 
int calcYear () const
 
int calcMonth () const
 
int calcDay () const
 
int calcDayOfYear () const
 
int calcDayOfWeek () const
 
int calcHour () const
 
int calcMin () const
 
double calcSec () const
 
void toYMDHMS_tr (int &nYear, int &nMonth, int &nDay, int &nHour, int &nMin, double &dSec) const
 
QString dayOfWeek2Str () const
 
QString dayOfWeek2LongStr () const
 
void setUpEpoch (int year, int month, int day, int hour, int min, double sec)
 
QString toString (Format format=F_Verbose) const
 
bool fromString (Format format, const QString &str, bool isReset=true)
 
bool operator== (const SgMJD &T) const
 
bool operator!= (const SgMJD &T) const
 
SgMJDoperator+= (double days)
 
SgMJDoperator-= (double days)
 
double toDouble () const
 
SgMJD toUtc () const
 
SgMJD toLocal () const
 
double gmst () const
 
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 Public Member Functions inherited from SgMJD
static int calcDayNumber (int year, int month, int day)
 
static double calcPartOfDay (int hour, int min, double sec)
 
static void MJD_reverse (int date, double time, int &nYear, int &nMonth, int &nDay, int &nHour, int &nMin, double &dSec)
 
static SgMJD currentMJD ()
 
- Static Public Member Functions inherited from SgAttribute
static const QString className ()
 

Private Attributes

double a0_
 
double a1_
 
double a2_
 
double s0_
 
double s1_
 
double s2_
 
SgMJD epoch4Export_
 
SgParameterpA0_
 
SgParameterpA1_
 
SgParameterpA2_
 

Additional Inherited Members

- Static Protected Attributes inherited from SgMJD
static const char * shortMonthNames_ []
 
static const char * longMonthNames_ []
 
static const char * shortWeekdayNames_ []
 
static const char * longWeekdayNames_ []
 

Detailed Description

====================================================================================================

Definition at line 53 of file SgBreakModel.h.

Member Enumeration Documentation

◆ Attributes

Enumerator
Attr_NOT_VALID 

do not use this break;

Attr_MODIFIED 

parameters were modified;

Attr_DYNAMIC 

parameters supposed to be estimated during the common solution;

Definition at line 56 of file SgBreakModel.h.

Constructor & Destructor Documentation

◆ SgParameterBreak() [1/3]

SgParameterBreak::SgParameterBreak ( )
inline

A constructor. Creates an object.

Definition at line 342 of file SgBreakModel.h.

References a0_, a1_, a2_, pA0_, pA1_, pA2_, s0_, s1_, and s2_.

◆ SgParameterBreak() [2/3]

SgParameterBreak::SgParameterBreak ( const SgParameterBreak b)

A constructor. Creates an object.

Definition at line 53 of file SgBreakModel.cpp.

References getA0(), getA1(), getA2(), getS0(), getS1(), getS2(), pA0(), pA0_, pA1(), pA1_, pA2(), pA2_, setA0(), setA1(), setA2(), setS0(), setS1(), and setS2().

◆ SgParameterBreak() [3/3]

SgParameterBreak::SgParameterBreak ( const SgMJD t,
double  a0 = 0.0,
double  a1 = 0.0,
double  a2 = 0.0,
bool  isDynamic = false 
)

A constructor. Creates an object.

Definition at line 76 of file SgBreakModel.cpp.

References SgAttribute::addAttr(), Attr_DYNAMIC, pA0_, pA1_, pA2_, setA0(), setA1(), setA2(), setS0(), setS1(), and setS2().

◆ ~SgParameterBreak()

SgParameterBreak::~SgParameterBreak ( )

A destructor. Frees allocated memory.

Definition at line 95 of file SgBreakModel.cpp.

References pA0_, pA1_, and pA2_.

Member Function Documentation

◆ className()

const QString SgParameterBreak::className ( )
static

Returns name of the class (for debug output).

Definition at line 45 of file SgBreakModel.cpp.

Referenced by loadIntermediateResults(), and saveIntermediateResults().

◆ createParameters()

void SgParameterBreak::createParameters ( const QString &  prefix)

Allocates necessary memory for estimated parameters.

Definition at line 155 of file SgBreakModel.cpp.

References pA0_, pA1_, and pA2_.

◆ getA0()

◆ getA1()

double SgParameterBreak::getA1 ( ) const
inline

Returns a value of the change in trend.

Definition at line 371 of file SgBreakModel.h.

References a1_.

Referenced by SgParameterBreak(), operator=(), and SgVlbiSession::putDataIntoDbhImage().

◆ getA2()

double SgParameterBreak::getA2 ( ) const
inline

Returns a value of the change in acceleration.

Definition at line 379 of file SgBreakModel.h.

References a2_.

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

◆ getEpoch4Export()

const SgMJD & SgParameterBreak::getEpoch4Export ( ) const
inline

Returns a value of the epoch for export.

Definition at line 411 of file SgBreakModel.h.

References epoch4Export_.

Referenced by SgAgvDriver::fillSessVars(), operator=(), SgVlbiSession::putDataIntoDbhImage(), and SgVlbiSession::putDataIntoVgosDb().

◆ getS0()

◆ getS1()

double SgParameterBreak::getS1 ( ) const
inline

Returns a std.var. of the change in trend.

Definition at line 395 of file SgBreakModel.h.

References s1_.

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

◆ getS2()

double SgParameterBreak::getS2 ( ) const
inline

Returns a std.var. of the change in acceleration.

Definition at line 403 of file SgBreakModel.h.

References s2_.

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

◆ loadIntermediateResults()

◆ operator=()

SgParameterBreak & SgParameterBreak::operator= ( const SgParameterBreak b)

An assignment operator.

Definition at line 117 of file SgBreakModel.cpp.

References getA0(), getA1(), getA2(), getEpoch4Export(), getS0(), getS1(), getS2(), pA0(), pA0_, pA1(), pA1_, pA2(), pA2_, setA0(), setA1(), setA2(), setEpoch4Export(), setS0(), setS1(), and setS2().

◆ pA0() [1/2]

SgParameter* SgParameterBreak::pA0 ( )
inline

◆ pA0() [2/2]

const SgParameter* SgParameterBreak::pA0 ( ) const
inline

Definition at line 165 of file SgBreakModel.h.

References pA0_.

◆ pA1() [1/2]

SgParameter* SgParameterBreak::pA1 ( )
inline

◆ pA1() [2/2]

const SgParameter* SgParameterBreak::pA1 ( ) const
inline

Definition at line 166 of file SgBreakModel.h.

References pA1_.

◆ pA2() [1/2]

SgParameter* SgParameterBreak::pA2 ( )
inline

◆ pA2() [2/2]

const SgParameter* SgParameterBreak::pA2 ( ) const
inline

Definition at line 167 of file SgBreakModel.h.

References pA2_.

◆ propagatePartials()

void SgParameterBreak::propagatePartials ( QList< SgParameter * > &  parameters,
const SgMJD t,
double  tau,
double  sign 
)

Fills partials for the parameters.

Definition at line 187 of file SgBreakModel.cpp.

References SgPartial::Attr_IS_IN_RUN, SgAttribute::isAttr(), pA0_, pA1_, pA2_, and SgPartial::setD().

◆ propagatePartials4rates()

void SgParameterBreak::propagatePartials4rates ( QList< SgParameter * > &  parameters,
const SgMJD t,
double  tau,
double  sign 
)

◆ rate()

double SgParameterBreak::rate ( const SgMJD t,
double  dT 
) const
inline

Definition at line 487 of file SgBreakModel.h.

References a1_, a2_, Attr_DYNAMIC, and SgAttribute::isAttr().

◆ releaseParameters()

void SgParameterBreak::releaseParameters ( )

Frees previously allocated memory for estimated parameters.

Definition at line 165 of file SgBreakModel.cpp.

References pA0_, pA1_, and pA2_.

◆ saveIntermediateResults()

bool SgParameterBreak::saveIntermediateResults ( QDataStream s) const

◆ setA0()

void SgParameterBreak::setA0 ( double  a)
inline

Sets a value of new shift.

Parameters
a– new shift;

Definition at line 419 of file SgBreakModel.h.

References a0_.

Referenced by SgParameterBreak(), SgGuiVlbiStnClockBreakEditor::acquireData(), SgVlbiSession::correctClockBreak(), and operator=().

◆ setA1()

void SgParameterBreak::setA1 ( double  a)
inline

Sets a value of new change in trend.

Parameters
a– new trend;

Definition at line 427 of file SgBreakModel.h.

References a1_.

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

◆ setA2()

void SgParameterBreak::setA2 ( double  a)
inline

Sets a value of new change in acceleration.

Parameters
a– new acceleration;

Definition at line 435 of file SgBreakModel.h.

References a2_.

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

◆ setEpoch4Export()

void SgParameterBreak::setEpoch4Export ( const SgMJD t)
inline

Sets a value of new export epoch.

Parameters
t– new epoch;

Definition at line 467 of file SgBreakModel.h.

References epoch4Export_.

Referenced by SgVlbiStationInfo::calcCBEpochs4Export(), and operator=().

◆ setS0()

void SgParameterBreak::setS0 ( double  a)
inline

Sets a std.var. of new shift.

Parameters
a– new shift;

Definition at line 443 of file SgBreakModel.h.

References s0_.

Referenced by SgParameterBreak(), SgGuiVlbiStnClockBreakEditor::acquireData(), SgVlbiSession::correctClockBreak(), and operator=().

◆ setS1()

void SgParameterBreak::setS1 ( double  a)
inline

Sets a std.var. of new change in trend.

Parameters
a– new trend;

Definition at line 451 of file SgBreakModel.h.

References s1_.

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

◆ setS2()

void SgParameterBreak::setS2 ( double  a)
inline

Sets a std.var. of new change in acceleration.

Parameters
a– new acceleration;

Definition at line 459 of file SgBreakModel.h.

References s2_.

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

◆ value()

double SgParameterBreak::value ( const SgMJD t,
double  dT 
) const
inline

Returns a value of parameter break function.

Parameters
t– current epoch;
dT– interval passed from an arbitrary zero epoch;

Definition at line 479 of file SgBreakModel.h.

References a0_, a1_, a2_, Attr_DYNAMIC, and SgAttribute::isAttr().

Member Data Documentation

◆ a0_

double SgParameterBreak::a0_
private

◆ a1_

double SgParameterBreak::a1_
private

◆ a2_

double SgParameterBreak::a2_
private

◆ epoch4Export_

SgMJD SgParameterBreak::epoch4Export_
private

◆ pA0_

SgParameter* SgParameterBreak::pA0_
private

◆ pA1_

◆ pA2_

◆ s0_

double SgParameterBreak::s0_
private

◆ s1_

double SgParameterBreak::s1_
private

◆ s2_

double SgParameterBreak::s2_
private

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