Loading isis/src/control/objs/BundleUtilities/BundleObservationVector.cpp +20 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,8 @@ namespace Isis { throw IException(IException::Programmer, message, _FILEINFO_); } bundleImage->setParentObservation(bundleObservation); // Find the bundle observation solve settings for this new observation BundleObservationSolveSettings solveSettings; // When there is only one bundle observation solve setting, use it for all observations Loading Loading @@ -252,3 +254,21 @@ namespace Isis { return list; } } /** * Compute vtpv, the weighted sum of squares of constrained image parameter residuals. * * @return double Weighted sum of squares of constrained image parameter residuals. */ double BundleObservationVector::vtpvContribution() { double vtpvImage = 0; for (int i = 0; i < size(); i++) { BundleObservationQsp bundleObservation = at(i); vtpvImage += bundleObservation->vtpv(); } return vtpvImage; } } isis/src/control/objs/BundleUtilities/BundleObservationVector.h +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,8 @@ namespace Isis { * @history 2016-10-13 Ian Humphrey - Modified addnew so that we set solve settings based * on the BundleObsevation's observation number. Renamed addnew to * addNew(). References #4293. * @history 2018-02-12 Ken Edmundson Renamed initializeBodyRotation method to setBodyRotation. * @history 2018-11-29 Ken Edmundson Modified addNew method. Removed setBodyRotation method. */ class BundleObservationVector : public QVector<BundleObservationQsp> { Loading @@ -69,6 +71,8 @@ namespace Isis { BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber); double vtpvContribution(); QList<QString> instrumentIds() const; QList<BundleObservationQsp> observationsByInstId(QString instrumentId) const; Loading Loading
isis/src/control/objs/BundleUtilities/BundleObservationVector.cpp +20 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,8 @@ namespace Isis { throw IException(IException::Programmer, message, _FILEINFO_); } bundleImage->setParentObservation(bundleObservation); // Find the bundle observation solve settings for this new observation BundleObservationSolveSettings solveSettings; // When there is only one bundle observation solve setting, use it for all observations Loading Loading @@ -252,3 +254,21 @@ namespace Isis { return list; } } /** * Compute vtpv, the weighted sum of squares of constrained image parameter residuals. * * @return double Weighted sum of squares of constrained image parameter residuals. */ double BundleObservationVector::vtpvContribution() { double vtpvImage = 0; for (int i = 0; i < size(); i++) { BundleObservationQsp bundleObservation = at(i); vtpvImage += bundleObservation->vtpv(); } return vtpvImage; } }
isis/src/control/objs/BundleUtilities/BundleObservationVector.h +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,8 @@ namespace Isis { * @history 2016-10-13 Ian Humphrey - Modified addnew so that we set solve settings based * on the BundleObsevation's observation number. Renamed addnew to * addNew(). References #4293. * @history 2018-02-12 Ken Edmundson Renamed initializeBodyRotation method to setBodyRotation. * @history 2018-11-29 Ken Edmundson Modified addNew method. Removed setBodyRotation method. */ class BundleObservationVector : public QVector<BundleObservationQsp> { Loading @@ -69,6 +71,8 @@ namespace Isis { BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber); double vtpvContribution(); QList<QString> instrumentIds() const; QList<BundleObservationQsp> observationsByInstId(QString instrumentId) const; Loading