General Purpose Geodetic Library
SgObjectInfo Class Reference

#include <SgObjectInfo.h>

Inheritance diagram for SgObjectInfo:
SgAttribute SgVlbiBand SgVlbiBaselineInfo SgVlbiSourceInfo SgVlbiStationInfo

Public Member Functions

 SgObjectInfo (int idx=-1, const QString &key="Unknown", const QString &aka="")
 
 SgObjectInfo (const SgObjectInfo &)
 
 ~SgObjectInfo ()
 
const QString & getKey () const
 
const QString & getAka () const
 
int getIdx () const
 
int numTotal (DataType dType) const
 
int numProcessed (DataType dType) const
 
int numUsable (DataType) const
 
double getSigma2add (DataType) const
 
const SgMJDtFirst (DataType) const
 
const SgMJDtLast (DataType) const
 
double normedResid (DataType) const
 
double getSFF_NrmRes (DataType) const
 
double getSFF_NrmRes_plus_15 (DataType) const
 
double chi2 (DataType) const
 
double reducedChi2 (DataType) const
 
double weightScaleCoefficient (DataType) const
 
double dispersion (DataType, bool=false) const
 
void setKey (const QString &key)
 
void setAka (const QString &aka)
 
void setIdx (int idx)
 
void setNumUsable (DataType dType, int n)
 
void setNormedResid (DataType dType, double d)
 
void setSigma2add (DataType dType, double d)
 
void setSFF_NrmRes (DataType dType, double d)
 
void setSFF_NrmRes_plus_15 (DataType dType, double d)
 
void incNumTotal (DataType, int=1)
 
void decNumTotal (DataType, int=1)
 
void incNumUsable (DataType, int=1)
 
void decNumUsable (DataType, int=1)
 
void addWrms (DataType, const SgMJD &t, double o_c, double w, double auxSum)
 
double wrms (DataType) const
 
double dof (DataType) const
 
void clearWrms ()
 
void copyStatistics (SgObjectInfo *)
 
void copySigmas2add (SgObjectInfo *)
 
void resetAllEditings ()
 
void recalcSigma2add (const SgTaskConfig *cfg)
 
void calcNormalizedResiduals (const QList< SgVlbiObservable * > &observables, const SgTaskConfig *cfg)
 
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 SgAttribute
static const QString className ()
 

Private Attributes

QString key_
 
QString aka_
 a key – a string of chars that identifies an object; More...
 
int idx_
 "also known as", a second name or an alias; More...
 
SgWrmsable delayWrms_
 local (session) index; More...
 
SgWrmsable rateWrms_
 
SgWrmsablewrmss [2]
 
QMap< DataType, int > dType2Idx_
 

Friends

class SgVlbiBaselineInfo
 

Detailed Description

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

Definition at line 55 of file SgObjectInfo.h.

Constructor & Destructor Documentation

◆ SgObjectInfo() [1/2]

SgObjectInfo::SgObjectInfo ( int  idx = -1,
const QString &  key = "Unknown",
const QString &  aka = "" 
)
inline

A constructor. Creates an object.

Definition at line 270 of file SgObjectInfo.h.

References delayWrms_, DT_DELAY, DT_RATE, dType2Idx_, idx_, rateWrms_, and wrmss.

◆ SgObjectInfo() [2/2]

SgObjectInfo::SgObjectInfo ( const SgObjectInfo obj)
inline

Definition at line 288 of file SgObjectInfo.h.

References delayWrms_, DT_DELAY, DT_RATE, dType2Idx_, getIdx(), idx_, rateWrms_, and wrmss.

◆ ~SgObjectInfo()

SgObjectInfo::~SgObjectInfo ( )
inline

A destructor. Frees allocated memory.

Definition at line 308 of file SgObjectInfo.h.

Member Function Documentation

◆ addWrms()

void SgObjectInfo::addWrms ( DataType  dType,
const SgMJD t,
double  o_c,
double  w,
double  auxSum 
)
inline

Adds a residual to the accumulated W.R.M.S. statistics.

Parameters
o_c– the residual;
w– its weight (usually, it is sigma^(-2));
auxSum– the additional sigma);

Definition at line 559 of file SgObjectInfo.h.

References SgWrmsable::addWrms(), dType2Idx_, and wrmss.

◆ calcNormalizedResiduals()

void SgObjectInfo::calcNormalizedResiduals ( const QList< SgVlbiObservable * > &  observables,
const SgTaskConfig cfg 
)
inline

◆ chi2()

double SgObjectInfo::chi2 ( DataType  dType) const
inline

◆ className()

const QString SgObjectInfo::className ( )
static

Returns name of the class (for debug output).

Definition at line 40 of file SgObjectInfo.cpp.

Referenced by loadIntermediateResults(), and saveIntermediateResults().

◆ clearWrms()

void SgObjectInfo::clearWrms ( )
inline

Clears accumulated W.R.M.S. statistics.

Definition at line 550 of file SgObjectInfo.h.

References SgWrmsable::clearWrms(), delayWrms_, and rateWrms_.

Referenced by SgVlbiSession::prepare4Analysis().

◆ copySigmas2add()

void SgObjectInfo::copySigmas2add ( SgObjectInfo info)
inline

◆ copyStatistics()

void SgObjectInfo::copyStatistics ( SgObjectInfo info)
inline

Gets statistics from other object.

Definition at line 583 of file SgObjectInfo.h.

References SgWrmsable::copyStatistics(), delayWrms_, and rateWrms_.

Referenced by SgSingleSessionTaskManager::run().

◆ decNumTotal()

void SgObjectInfo::decNumTotal ( DataType  dType,
int  n = 1 
)
inline

Decrements total number of observations.

Definition at line 527 of file SgObjectInfo.h.

References SgWrmsable::decNumTotal(), dType2Idx_, and wrmss.

Referenced by SgTask::removeSession().

◆ decNumUsable()

void SgObjectInfo::decNumUsable ( DataType  dType,
int  n = 1 
)
inline

Definition at line 542 of file SgObjectInfo.h.

References SgWrmsable::decNumUsable(), dType2Idx_, and wrmss.

◆ dispersion()

double SgObjectInfo::dispersion ( DataType  dType,
bool  isSolveCompatible = false 
) const
inline

◆ dof()

double SgObjectInfo::dof ( DataType  dType) const
inline

Definition at line 575 of file SgObjectInfo.h.

References SgWrmsable::dof(), dType2Idx_, and wrmss.

Referenced by NsScrPrx4Object::getDof(), and SgSingleSessionTaskManager::run().

◆ getAka()

const QString & SgObjectInfo::getAka ( ) const
inline

Returns an AKA.

Definition at line 327 of file SgObjectInfo.h.

References aka_.

Referenced by saveIntermediateResults().

◆ getIdx()

◆ getKey()

const QString & SgObjectInfo::getKey ( ) const
inline

Returns a key.

Definition at line 319 of file SgObjectInfo.h.

References key_.

Referenced by NsSessionEditDialog::NsSessionEditDialog(), SgGuiPiaReport::SgGuiPiaReport(), SgGuiVlbiBaselineList::SgGuiVlbiBaselineList(), SgGuiVlbiBlnInfoEditor::SgGuiVlbiBlnInfoEditor(), SgGuiVlbiSourceList::SgGuiVlbiSourceList(), SgGuiVlbiSrcInfoEditor::SgGuiVlbiSrcInfoEditor(), SgGuiVlbiStationList::SgGuiVlbiStationList(), SgGuiVlbiStnInfoEditor::SgGuiVlbiStnInfoEditor(), SgSolutionReporter::absorbInfo(), SgGuiVlbiBlnInfoEditor::acquireData(), SgTask::addSession(), SgZenithDelay::calc(), SgDryZD_Saastamoinen::calc(), SgWetZD_Saastamoinen::calc(), SgDryMF_NMF::calc(), SgWetMF_NMF::calc(), SgVlbiObservation::calcIonoCorrections(), SgRefraction::calcTroposphericDelay(), SgVlbiSession::calculateClockBreakParameter(), SgVlbiSession::calculateClockBreaksParameters(), SgVlbiObservation::calculateIonoBits(), NsSessionEditDialog::changePrimaryBand(), SgVlbiSession::check4ClockBreaksAtSBD(), SgVlbiSession::checkBandForClockBreaks(), SgVlbiSession::checkChannelSetup(), SgVlbiSession::checkExcludedStations(), SgVlbiSession::collectAPriories(), SgTaskManager::constrainClocks(), SgTaskManager::constrainSourcesPositions(), SgTaskManager::constrainStcPositionsNNR(), SgTaskManager::constrainStcPositionsNNT(), SgTaskManager::constrainTroposphericParameters(), SgVlbiSession::correctClockBreak(), SgVlbiBaselineInfo::createParameters(), SgVlbiSourceInfo::createParameters(), SgVlbiStationInfo::createParameters(), SgVlbiSession::detectClockBreaks_mode1(), NsSessionEditDialog::displayExcludedObs(), NsSessionEditDialog::displayExcludedObs_old(), NsSessionEditDialog::displayPointInfo(), SgVlbiSession::doPostReadActions4Ints(), SgVlbiSession::eliminateLargeOutliers(), SgVlbiSession::eliminateOutliers(), SgVlbiSession::eliminateOutliersSimpleMode(), SgVlbiBaselineInfo::evaluateMeanGrDelResiduals(), SgVlbiObservation::evaluateTheoreticalValues(), NsSessionHandler::exportDataIntoDbh(), SgVlbiSession::exportDataIntoNgsFile(), SgAgvDriver::fillBslnVars(), SgAgvDriver::fillDataStructures(), SgAgvDriver::fillMandatoryVars(), SgTaskManager::fillParameterList(), SgAgvDriver::fillSessVars(), SgSingleSessionTaskManager::finisRun(), NsScrPrx4VlbiObservation::getBaseline(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromKombFiles(), SgVlbiSession::getDataFromVgosDb(), NsScrPrx4Object::getKey(), NsScrPrx4VlbiObservation::getSource(), NsScrPrx4VlbiObservation::getStation_1(), NsScrPrx4VlbiObservation::getStation_2(), SgVlbiSession::importDataFromLogFiles(), SgVgosDb::init(), SgAgvDriver::initSession(), SgVlbiSession::isInUse(), loadIntermediateResults(), SgVlbiBand::loadIntermediateResults(), main(), SgVlbiSession::makeHistory(), SgVlbiStationInfo::name(), SgVlbiSession::nickName(), observationSortingOrderLessThan4newSession(), SgVlbiSession::pickupReferenceClocksStation(), SgVlbiSession::pickupReferenceCoordinatesStation(), SgSingleSessionTaskManager::prepare4Run(), NsSessionEditDialog::processClockBreakMarks(), NsSessionEditDialog::processClockBreakMarksNew(), SgVlbiSession::processKombFile(), SgStnLogReadings::propagateData(), SgVlbaLogCollector::propagateData(), SgStnLogCollector::propagateData(), SgVlbiSession::putDataIntoDbhImage(), SgVlbiSession::putDataIntoVgosDb(), SgTask::removeSession(), SgSolutionReporter::report2MyFile(), SgSolutionReporter::reportAtmo(), SgSolutionReporter::reportBaselineStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportBaselineVariationsBlock_Output4Spoolfile(), SgSolutionReporter::reportCloc(), SgSolutionReporter::reportConfiguresBlock_Output4Spoolfile(), SgSolutionReporter::reportDeselectedObsBlock_Output4Spoolfile(), SgSolutionReporter::reportDeselectedObsBlock_Output4Spoolfile_v2(), SgSolutionReporter::reportDeselectedObsBlock_Output4Spoolfile_v3(), SgSolutionReporter::reportEstimationBlock_Output4Spoolfile(), SgSolutionReporter::reportIdentitiesBlock_Output4Spoolfile(), SgSolutionReporter::reportMetStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportResidualsBlock_Output4Spoolfile(), SgSolutionReporter::reportResidualsBlock_Output4Spoolfile_old(), SgSolutionReporter::reportSources_Output4AposterioriFiles(), SgSolutionReporter::reportSourceStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportStations_Output4AposterioriFiles(), SgSolutionReporter::reportStationStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportStoch4Stn(), SgSolutionReporter::reportTotalZenithDelays(), SgVlbiSession::resetDataFromLogFiles(), SgVlbiSession::resolveGrAmbigTriangles(), SgVlbiSession::restoreOutliers(), SgSingleSessionTaskManager::run(), saveIntermediateResults(), SgVlbiBand::saveIntermediateResults(), SgVlbiBaselineInfo::scan4Ambiguities_m1(), SgVlbiBaselineInfo::scan4Ambiguities_m2(), SgVlbiBand::selfCheck(), SgVlbiSession::selfCheck(), SgVlbiBaselineInfo::setGrdAmbiguities2min(), SgVlbiStationInfo::setR(), SgVlbiSession::setReferenceClocksStation(), SgExternalWeights::setupExternalWeights(), SgVlbiObservation::setupIdentities(), SgVlbiBaselineInfo::stn_1(), SgVlbiBaselineInfo::stn_2(), SgVlbiObservable::strId(), SgVlbiSession::suppressNotSoGoodObs(), NsSessionEditDialog::tab4Band(), NsSessionEditDialog::tab4BandPlots(), NsSessionEditDialog::tab4GeneralInfo(), NsSessionEditDialog::tab4StationsPlot(), SgGuiVlbiBaselineList::toggleEntryMoveEnable(), SgGuiVlbiStationList::toggleEntryMoveEnable(), SgGuiVlbiBaselineList::updateContent(), SgGuiVlbiSourceList::updateContent(), SgGuiVlbiStationList::updateContent(), and SgVlbiSession::writeUserData2File().

◆ getSFF_NrmRes()

double SgObjectInfo::getSFF_NrmRes ( DataType  dType) const
inline

◆ getSFF_NrmRes_plus_15()

double SgObjectInfo::getSFF_NrmRes_plus_15 ( DataType  dType) const
inline

◆ getSigma2add()

◆ incNumTotal()

void SgObjectInfo::incNumTotal ( DataType  dType,
int  n = 1 
)
inline

◆ incNumUsable()

void SgObjectInfo::incNumUsable ( DataType  dType,
int  n = 1 
)
inline

Definition at line 534 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::incNumUsable(), and wrmss.

Referenced by SgVlbiObservation::evaluateResiduals().

◆ loadIntermediateResults()

◆ normedResid()

double SgObjectInfo::normedResid ( DataType  dType) const
inline

Returns normalized residuals.

Definition at line 391 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::getNormedResid(), and wrmss.

◆ numProcessed()

◆ numTotal()

◆ numUsable()

◆ recalcSigma2add()

◆ reducedChi2()

double SgObjectInfo::reducedChi2 ( DataType  dType) const
inline

◆ resetAllEditings()

◆ saveIntermediateResults()

◆ setAka()

void SgObjectInfo::setAka ( const QString &  aka)
inline

Sets up an "Also known as" field.

Parameters
aka– new AKA;

Definition at line 455 of file SgObjectInfo.h.

References aka_.

◆ setIdx()

void SgObjectInfo::setIdx ( int  idx)
inline

Sets up an index.

Parameters
idx– new index;

Definition at line 463 of file SgObjectInfo.h.

References idx_.

◆ setKey()

void SgObjectInfo::setKey ( const QString &  key)
inline

Sets a key.

Parameters
srcKey– new key;

Definition at line 447 of file SgObjectInfo.h.

References key_.

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

◆ setNormedResid()

void SgObjectInfo::setNormedResid ( DataType  dType,
double  d 
)
inline

Sets value of normalized residuals.

Parameters
d– normalized residulas;

Definition at line 487 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::setNormedResid(), and wrmss.

Referenced by SgSolutionReporter::absorbInfo().

◆ setNumUsable()

void SgObjectInfo::setNumUsable ( DataType  dType,
int  n 
)
inline

Sets number of potentially good (recoverable) observations.

Parameters
n– number of recoverable observations;

Definition at line 479 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::setNumUsable(), and wrmss.

◆ setSFF_NrmRes()

void SgObjectInfo::setSFF_NrmRes ( DataType  dType,
double  d 
)
inline

Sets value of normalized residuals for spoolfile output – SOLVE version.

Parameters
d– normalized residulas;

Definition at line 495 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::setSFF_NrmRes(), and wrmss.

Referenced by SgSolutionReporter::absorbInfo().

◆ setSFF_NrmRes_plus_15()

void SgObjectInfo::setSFF_NrmRes_plus_15 ( DataType  dType,
double  d 
)
inline

Sets value of aux normalized residuals for spoolfile output – SOLVE version.

Parameters
d– normalized residulas;

Definition at line 503 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::setSFF_NrmRes_plus_15(), and wrmss.

Referenced by SgSolutionReporter::absorbInfo().

◆ setSigma2add()

◆ tFirst()

const SgMJD & SgObjectInfo::tFirst ( DataType  dType) const
inline

Returns MJD of the first observation related to the object.

Definition at line 375 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::tFirst(), and wrmss.

Referenced by NsScrPrx4Object::getTfirst().

◆ tLast()

const SgMJD & SgObjectInfo::tLast ( DataType  dType) const
inline

Returns MJD of the last observation related to the object.

Definition at line 383 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::tLast(), and wrmss.

Referenced by NsScrPrx4Object::getTlast().

◆ weightScaleCoefficient()

double SgObjectInfo::weightScaleCoefficient ( DataType  dType) const
inline

Returns coefficient to scale a weight.

Definition at line 431 of file SgObjectInfo.h.

References dType2Idx_, SgWrmsable::weightScaleCoefficient(), and wrmss.

◆ wrms()

Friends And Related Function Documentation

◆ SgVlbiBaselineInfo

friend class SgVlbiBaselineInfo
friend

Definition at line 57 of file SgObjectInfo.h.

Member Data Documentation

◆ aka_

QString SgObjectInfo::aka_
private

a key – a string of chars that identifies an object;

Definition at line 246 of file SgObjectInfo.h.

Referenced by getAka(), and setAka().

◆ delayWrms_

◆ dType2Idx_

◆ idx_

int SgObjectInfo::idx_
private

"also known as", a second name or an alias;

Definition at line 247 of file SgObjectInfo.h.

Referenced by SgObjectInfo(), getIdx(), and setIdx().

◆ key_

QString SgObjectInfo::key_
private

Definition at line 245 of file SgObjectInfo.h.

Referenced by getKey(), and setKey().

◆ rateWrms_

◆ wrmss


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