General Purpose Geodetic Library
|
#include <SgBreakModel.h>
Public Member Functions | |
SgBreakModel () | |
~SgBreakModel () | |
SgBreakModel & | operator= (const SgBreakModel &m) |
const SgMJD & | getT0 () const |
void | setT0 (const SgMJD &t) |
double | value (const SgMJD &t) const |
double | rate (const SgMJD &t) const |
bool | addBreak (const SgMJD &t, double a0=0.0, double a1=0.0, double a2=0.0, bool isDynamic=false) |
bool | addBreak (SgParameterBreak *aBreak) |
bool | delBreak (const SgMJD &t) |
bool | delBreak (int n) |
void | resetAllEditings () |
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) |
void | sortEvents () |
bool | saveIntermediateResults (QDataStream &) const |
bool | loadIntermediateResults (QDataStream &) |
Static Public Member Functions | |
static const QString | className () |
Private Attributes | |
SgMJD | t0_ |
====================================================================================================
Definition at line 226 of file SgBreakModel.h.
|
inline |
A constructor. Creates an object.
Definition at line 509 of file SgBreakModel.h.
|
inline |
A destructor. Frees allocated memory.
Definition at line 518 of file SgBreakModel.h.
bool SgBreakModel::addBreak | ( | const SgMJD & | t, |
double | a0 = 0.0 , |
||
double | a1 = 0.0 , |
||
double | a2 = 0.0 , |
||
bool | isDynamic = false |
||
) |
Adds a break to the model. Returns true in success (or false, if the epoch already exists).
t | – epoch of the break; |
a0 | – shift; |
a1 | – trend; |
a2 | – acceleration; |
Definition at line 377 of file SgBreakModel.cpp.
Referenced by SgGuiVlbiStnInfoEditor::addNewClockBreak(), SgVlbiSession::correctClockBreak(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), and loadIntermediateResults().
bool SgBreakModel::addBreak | ( | SgParameterBreak * | aBreak | ) |
Adds a break to the model. Returns true in success (or false, if the epoch already exists). WARNING: the model will b eresponsible for the pointer, do not delete it after this call.
aBreak | – new break; |
Definition at line 391 of file SgBreakModel.cpp.
|
static |
Returns name of the class (for debug output).
Definition at line 324 of file SgBreakModel.cpp.
Referenced by loadIntermediateResults(), and saveIntermediateResults().
void SgBreakModel::createParameters | ( | const QString & | prefix | ) |
Allocates necessary memory for estimated parameters.
Definition at line 453 of file SgBreakModel.cpp.
Referenced by SgVlbiStationInfo::createParameters().
bool SgBreakModel::delBreak | ( | const SgMJD & | t | ) |
Deletes a break at the specific epoch.
t | – the epoch; |
Definition at line 405 of file SgBreakModel.cpp.
References DAY2SEC.
Referenced by SgVlbiSession::check4ClockBreaksAtSBD(), and SgGuiVlbiStnInfoEditor::deleteClockBreakRecord().
bool SgBreakModel::delBreak | ( | int | n | ) |
Deletes a break under the index #n (counting from zero).
n | – the index; |
Definition at line 432 of file SgBreakModel.cpp.
|
inline |
Returns a value of zero epoch.
Definition at line 532 of file SgBreakModel.h.
References t0_.
Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), and operator=().
bool SgBreakModel::loadIntermediateResults | ( | QDataStream & | s | ) |
Definition at line 512 of file SgBreakModel.cpp.
References addBreak(), className(), SgLogger::ERR, SgLogger::IO_BIN, SgParameterBreak::loadIntermediateResults(), logger, and SgLogger::write().
Referenced by SgVlbiStationInfo::loadIntermediateResults().
SgBreakModel & SgBreakModel::operator= | ( | const SgBreakModel & | m | ) |
An assignment operator.
Definition at line 332 of file SgBreakModel.cpp.
void SgBreakModel::propagatePartials | ( | QList< SgParameter * > & | parameters, |
const SgMJD & | t, | ||
double | tau, | ||
double | sign | ||
) |
Fills partials for the parameters.
Definition at line 471 of file SgBreakModel.cpp.
Referenced by SgVlbiObservation::fillPartials4delay().
void SgBreakModel::propagatePartials4rates | ( | QList< SgParameter * > & | parameters, |
const SgMJD & | t, | ||
double | tau, | ||
double | sign | ||
) |
Definition at line 481 of file SgBreakModel.cpp.
Referenced by SgVlbiObservation::fillPartials4rate().
double SgBreakModel::rate | ( | const SgMJD & | t | ) | const |
Definition at line 364 of file SgBreakModel.cpp.
References t0_.
Referenced by SgVlbiObservation::evaluateResiduals(), SgVlbiObservation::evaluateTheoreticalValues(), and SgVlbiObservation::prepare4Analysis().
void SgBreakModel::releaseParameters | ( | ) |
Frees previously allocated memory for estimated parameters.
Definition at line 462 of file SgBreakModel.cpp.
Referenced by SgVlbiStationInfo::releaseParameters().
|
inline |
Definition at line 548 of file SgBreakModel.h.
Referenced by SgVlbiStationInfo::resetAllEditings().
bool SgBreakModel::saveIntermediateResults | ( | QDataStream & | s | ) | const |
Definition at line 491 of file SgBreakModel.cpp.
References className(), SgLogger::ERR, SgLogger::IO_BIN, logger, and SgLogger::write().
Referenced by SgVlbiStationInfo::saveIntermediateResults().
|
inline |
Sets up the zero epoch.
t | – new zero epoch; |
Definition at line 540 of file SgBreakModel.h.
References t0_.
Referenced by SgGuiVlbiStnInfoEditor::SgGuiVlbiStnInfoEditor(), and operator=().
void SgBreakModel::sortEvents | ( | ) |
Definition at line 556 of file SgBreakModel.cpp.
References mjdOrderLessThan().
Referenced by SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
double SgBreakModel::value | ( | const SgMJD & | t | ) | const |
Definition at line 351 of file SgBreakModel.cpp.
References t0_.
Referenced by SgVlbiObservation::calcIonoCorrections(), SgVlbiObservation::evaluateResiduals(), SgVlbiObservation::evaluateTheoreticalValues(), and SgVlbiObservation::prepare4Analysis().
|
private |
Definition at line 320 of file SgBreakModel.h.
Referenced by SgBreakModel(), getT0(), rate(), setT0(), and value().