Commit f2e54139 authored by ladoramkershner's avatar ladoramkershner Committed by Jesse Mapel
Browse files

BundleObservationVector; initial commit

parent 53a08bda
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -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
@@ -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;
  }
}
+4 −0
Original line number Diff line number Diff line
@@ -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> {

@@ -69,6 +71,8 @@ namespace Isis {

      BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber);

      double vtpvContribution();

      QList<QString> instrumentIds() const;
      QList<BundleObservationQsp> observationsByInstId(QString instrumentId) const;