General Purpose Geodetic Library
|
#include <SgBreakModel.h>
Public Types | |
enum | Attributes { Attr_NOT_VALID = 1<<0 , Attr_MODIFIED = 1<<1 , Attr_DYNAMIC = 1<<2 } |
![]() | |
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 () | |
SgParameterBreak & | operator= (const SgParameterBreak &b) |
double | getA0 () const |
double | getA1 () const |
double | getA2 () const |
double | getS0 () const |
double | getS1 () const |
double | getS2 () const |
const SgMJD & | getEpoch4Export () 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 &) |
SgParameter * | pA0 () |
SgParameter * | pA1 () |
SgParameter * | pA2 () |
const SgParameter * | pA0 () const |
const SgParameter * | pA1 () const |
const SgParameter * | pA2 () 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 * > ¶meters, const SgMJD &t, double tau, double sign) |
void | propagatePartials4rates (QList< SgParameter * > ¶meters, const SgMJD &t, double tau, double sign) |
bool | saveIntermediateResults (QDataStream &) const |
bool | loadIntermediateResults (QDataStream &) |
![]() | |
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 () | |
SgMJD & | operator= (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 |
SgMJD & | operator+= (double days) |
SgMJD & | operator-= (double days) |
double | toDouble () const |
SgMJD | toUtc () const |
SgMJD | toLocal () const |
double | gmst () const |
bool | saveIntermediateResults (QDataStream &) const |
bool | loadIntermediateResults (QDataStream &) |
![]() | |
SgAttribute () | |
SgAttribute (const SgAttribute &a) | |
~SgAttribute () | |
SgAttribute & | operator= (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 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 const QString | className () |
Private Attributes | |
double | a0_ |
double | a1_ |
double | a2_ |
double | s0_ |
double | s1_ |
double | s2_ |
SgMJD | epoch4Export_ |
SgParameter * | pA0_ |
SgParameter * | pA1_ |
SgParameter * | pA2_ |
Additional Inherited Members | |
![]() | |
static const char * | shortMonthNames_ [] |
static const char * | longMonthNames_ [] |
static const char * | shortWeekdayNames_ [] |
static const char * | longWeekdayNames_ [] |
====================================================================================================
Definition at line 53 of file SgBreakModel.h.
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.
|
inline |
SgParameterBreak::SgParameterBreak | ( | const SgParameterBreak & | b | ) |
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 | ( | ) |
A destructor. Frees allocated memory.
Definition at line 95 of file SgBreakModel.cpp.
|
static |
Returns name of the class (for debug output).
Definition at line 45 of file SgBreakModel.cpp.
Referenced by loadIntermediateResults(), and saveIntermediateResults().
void SgParameterBreak::createParameters | ( | const QString & | prefix | ) |
Allocates necessary memory for estimated parameters.
Definition at line 155 of file SgBreakModel.cpp.
|
inline |
Returns a value of the shift.
Definition at line 363 of file SgBreakModel.h.
References a0_.
Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), SgGuiVlbiStnInfoEditor::SgGuiVlbiStnInfoEditor(), SgParameterBreak(), SgGuiVlbiStnClockBreakEditor::accept(), SgGuiVlbiStnClockBreakEditor::acquireData(), SgGuiVlbiStnInfoEditor::addNewClockBreak(), SgVlbiSession::check4ClockBreaksAtSBD(), SgVlbiSession::correctClockBreak(), operator=(), SgVlbiSession::putDataIntoDbhImage(), and SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
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().
|
inline |
Returns a value of the change in acceleration.
Definition at line 379 of file SgBreakModel.h.
References a2_.
Referenced by SgParameterBreak(), and operator=().
|
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().
|
inline |
Returns a std.var. of the shift.
Definition at line 387 of file SgBreakModel.h.
References s0_.
Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), SgGuiVlbiStnInfoEditor::SgGuiVlbiStnInfoEditor(), SgParameterBreak(), SgGuiVlbiStnClockBreakEditor::accept(), SgGuiVlbiStnClockBreakEditor::acquireData(), SgGuiVlbiStnInfoEditor::addNewClockBreak(), operator=(), and SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
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=().
|
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=().
bool SgParameterBreak::loadIntermediateResults | ( | QDataStream & | s | ) |
Definition at line 275 of file SgBreakModel.cpp.
References a0_, a1_, a2_, className(), epoch4Export_, SgLogger::ERR, SgLogger::IO_BIN, SgMJD::loadIntermediateResults(), logger, s0_, s1_, s2_, SgAttribute::setAttributes(), and SgLogger::write().
Referenced by SgBreakModel::loadIntermediateResults().
SgParameterBreak & SgParameterBreak::operator= | ( | const SgParameterBreak & | b | ) |
|
inline |
Definition at line 162 of file SgBreakModel.h.
References pA0_.
Referenced by SgParameterBreak(), SgTaskManager::fillParameterList(), operator=(), and SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
inline |
Definition at line 165 of file SgBreakModel.h.
References pA0_.
|
inline |
Definition at line 163 of file SgBreakModel.h.
References pA1_.
Referenced by SgParameterBreak(), SgTaskManager::fillParameterList(), operator=(), and SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
inline |
Definition at line 166 of file SgBreakModel.h.
References pA1_.
|
inline |
Definition at line 164 of file SgBreakModel.h.
References pA2_.
Referenced by SgParameterBreak(), SgTaskManager::fillParameterList(), operator=(), and SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
inline |
Definition at line 167 of file SgBreakModel.h.
References pA2_.
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().
void SgParameterBreak::propagatePartials4rates | ( | QList< SgParameter * > & | parameters, |
const SgMJD & | t, | ||
double | tau, | ||
double | sign | ||
) |
Definition at line 222 of file SgBreakModel.cpp.
References SgPartial::Attr_IS_IN_RUN, SgAttribute::isAttr(), pA1_, pA2_, and SgPartial::setD().
|
inline |
Definition at line 487 of file SgBreakModel.h.
References a1_, a2_, Attr_DYNAMIC, and SgAttribute::isAttr().
void SgParameterBreak::releaseParameters | ( | ) |
Frees previously allocated memory for estimated parameters.
Definition at line 165 of file SgBreakModel.cpp.
bool SgParameterBreak::saveIntermediateResults | ( | QDataStream & | s | ) | const |
Definition at line 248 of file SgBreakModel.cpp.
References a0_, a1_, a2_, className(), epoch4Export_, SgLogger::ERR, SgAttribute::getAttributes(), SgLogger::IO_BIN, logger, s0_, s1_, s2_, SgMJD::saveIntermediateResults(), and SgLogger::write().
|
inline |
Sets a value of new shift.
a | – new shift; |
Definition at line 419 of file SgBreakModel.h.
References a0_.
Referenced by SgParameterBreak(), SgGuiVlbiStnClockBreakEditor::acquireData(), SgVlbiSession::correctClockBreak(), and operator=().
|
inline |
Sets a value of new change in trend.
a | – new trend; |
Definition at line 427 of file SgBreakModel.h.
References a1_.
Referenced by SgParameterBreak(), and operator=().
|
inline |
Sets a value of new change in acceleration.
a | – new acceleration; |
Definition at line 435 of file SgBreakModel.h.
References a2_.
Referenced by SgParameterBreak(), and operator=().
|
inline |
Sets a value of new export epoch.
t | – new epoch; |
Definition at line 467 of file SgBreakModel.h.
References epoch4Export_.
Referenced by SgVlbiStationInfo::calcCBEpochs4Export(), and operator=().
|
inline |
Sets a std.var. of new shift.
a | – new shift; |
Definition at line 443 of file SgBreakModel.h.
References s0_.
Referenced by SgParameterBreak(), SgGuiVlbiStnClockBreakEditor::acquireData(), SgVlbiSession::correctClockBreak(), and operator=().
|
inline |
Sets a std.var. of new change in trend.
a | – new trend; |
Definition at line 451 of file SgBreakModel.h.
References s1_.
Referenced by SgParameterBreak(), and operator=().
|
inline |
Sets a std.var. of new change in acceleration.
a | – new acceleration; |
Definition at line 459 of file SgBreakModel.h.
References s2_.
Referenced by SgParameterBreak(), and operator=().
|
inline |
Returns a value of parameter break function.
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().
|
private |
Definition at line 202 of file SgBreakModel.h.
Referenced by SgParameterBreak(), getA0(), loadIntermediateResults(), saveIntermediateResults(), setA0(), and value().
|
private |
Definition at line 203 of file SgBreakModel.h.
Referenced by SgParameterBreak(), getA1(), loadIntermediateResults(), rate(), saveIntermediateResults(), setA1(), and value().
|
private |
Definition at line 204 of file SgBreakModel.h.
Referenced by SgParameterBreak(), getA2(), loadIntermediateResults(), rate(), saveIntermediateResults(), setA2(), and value().
|
private |
Definition at line 208 of file SgBreakModel.h.
Referenced by getEpoch4Export(), loadIntermediateResults(), saveIntermediateResults(), and setEpoch4Export().
|
private |
Definition at line 209 of file SgBreakModel.h.
Referenced by SgParameterBreak(), ~SgParameterBreak(), createParameters(), operator=(), pA0(), propagatePartials(), and releaseParameters().
|
private |
Definition at line 210 of file SgBreakModel.h.
Referenced by SgParameterBreak(), ~SgParameterBreak(), createParameters(), operator=(), pA1(), propagatePartials(), propagatePartials4rates(), and releaseParameters().
|
private |
Definition at line 211 of file SgBreakModel.h.
Referenced by SgParameterBreak(), ~SgParameterBreak(), createParameters(), operator=(), pA2(), propagatePartials(), propagatePartials4rates(), and releaseParameters().
|
private |
Definition at line 205 of file SgBreakModel.h.
Referenced by SgParameterBreak(), getS0(), loadIntermediateResults(), saveIntermediateResults(), and setS0().
|
private |
Definition at line 206 of file SgBreakModel.h.
Referenced by SgParameterBreak(), getS1(), loadIntermediateResults(), saveIntermediateResults(), and setS1().
|
private |
Definition at line 207 of file SgBreakModel.h.
Referenced by SgParameterBreak(), getS2(), loadIntermediateResults(), saveIntermediateResults(), and setS2().