|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef BundleResults_h
2 #define BundleResults_h
34 class QXmlStreamWriter;
102 QString minCoord1PointId, QString maxCoord1PointId);
104 QString minCoord2PointId, QString maxCoord2PointId);
106 QString minCoord3PointId, QString maxCoord3PointId);
108 double rmsFromSigmaCoord2Stats,
109 double rmsFromSigmaCoord3Stats);
127 double computeRejectionLimit(
ControlNet *p_Cnet,
128 double outlierRejectionMultiplier,
129 int numObservations);
133 double computeResiduals(
135 std::vector< boost::numeric::ublas::bounded_vector< double, 3 > > pointWeights,
136 std::vector< boost::numeric::ublas::bounded_vector< double, 3 > > pointCorrections,
138 std::vector< double > imageParameterWeights,
139 int numImagePartials,
198 double rmsRx()
const;
199 double rmsRy()
const;
239 void save(QXmlStreamWriter &stream,
const Project *project)
const;
258 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
259 const QString &qName,
const QXmlAttributes &atts);
260 virtual bool characters(
const QString &ch);
261 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
262 const QString &qName);
265 Q_DISABLE_COPY(XmlHandler);
269 QString m_xmlHandlerCharacters;
270 int m_xmlHandlerResidualsListSize;
271 int m_xmlHandlerSampleResidualsListSize;
272 int m_xmlHandlerLineResidualsListSize;
273 int m_xmlHandlerXSigmasListSize;
274 int m_xmlHandlerYSigmasListSize;
275 int m_xmlHandlerZSigmasListSize;
276 int m_xmlHandlerRASigmasListSize;
277 int m_xmlHandlerDECSigmasListSize;
278 int m_xmlHandlerTWISTSigmasListSize;
282 QString m_xmlHandlerCorrelationImageId;
289 int m_numberFixedPoints;
291 int m_numberIgnoredPoints;
292 int m_numberHeldImages;
295 double m_rmsXResiduals;
296 double m_rmsYResiduals;
297 double m_rmsXYResiduals;
299 double m_rejectionLimit;
301 int m_numberObservations;
302 int m_numberRejectedObservations;
303 int m_numberUnknownParameters;
304 int m_numberImageParameters;
305 int m_numberConstrainedImageParameters;
306 int m_numberConstrainedPointParameters;
307 int m_numberConstrainedTargetParameters;
308 int m_degreesOfFreedom;
310 double m_elapsedTime;
311 double m_elapsedTimeErrorProp;
363 QString m_minSigmaCoord1PointId;
364 QString m_maxSigmaCoord1PointId;
365 QString m_minSigmaCoord2PointId;
366 QString m_maxSigmaCoord2PointId;
367 QString m_minSigmaCoord3PointId;
368 QString m_maxSigmaCoord3PointId;
370 double m_rmsSigmaCoord1Stats;
371 double m_rmsSigmaCoord2Stats;
372 double m_rmsSigmaCoord3Stats;
392 int m_maximumLikelihoodIndex;
404 double m_maximumLikelihoodMedianR2Residuals;
412 #endif // BundleResults_h
double maximumLikelihoodMedianR2Residuals() const
Returns the median of the |R^2 residuals|.
Definition: BundleResults.cpp:1363
QString minSigmaCoord2PointId() const
Returns the minimum sigma point id for coordinate 2.
Definition: BundleResults.cpp:1045
int numberUnknownParameters() const
Returns the number of unknown parameters.
Definition: BundleResults.cpp:1215
int numberConstrainedPointParameters() const
Returns the number of constrained point parameters.
Definition: BundleResults.cpp:1185
int iterations() const
Returns the number of iterations taken by the BundleAdjust.
Definition: BundleResults.cpp:1302
@ ParameterCorrections
All parameter corrections will be used to determine that the bundle adjustment has converged.
Definition: BundleSettings.h:200
QString maxSigmaCoord2PointId() const
Returns the maximum sigma point id for coordinate 2.
Definition: BundleResults.cpp:1055
void incrementNumberConstrainedTargetParameters(int incrementAmount)
Increases the number of constrained target parameters.
Definition: BundleResults.cpp:720
bool converged() const
Returns whether or not the bundle adjustment converged.
Definition: BundleResults.cpp:1265
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
MaximumLikelihoodWFunctions maximumLikelihoodModelWFunc(int modelIndex) const
Returns the maximum likelihood model at the given index.
Definition: BundleResults.cpp:1375
SurfacePoint::CoordinateType coordTypeReports()
Definition: BundleResults.cpp:1439
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
int numberConstrainedImageParameters() const
Returns the number of constrained image parameters.
Definition: BundleResults.cpp:1195
int numberObservations() const
Returns the number of observations.
Definition: BundleResults.cpp:1165
void printMaximumLikelihoodTierInformation()
Prints out information about which tier the solution is in and the status of the residuals.
Definition: BundleResults.cpp:492
void resetNumberConstrainedImageParameters()
Resets the number of constrained image parameters to 0.
Definition: BundleResults.cpp:692
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
void setSigmaCoord2Range(Distance minCoord2Dist, Distance maxCoord2Dist, QString minCoord2PointId, QString maxCoord2PointId)
Sets the min and max sigma distances and point ids for coordinate 2.
Definition: BundleResults.cpp:400
Distance maxSigmaCoord3Distance() const
Returns the maximum sigma distance for coordinate 3.
Definition: BundleResults.cpp:1015
void setOutputControlNet(ControlNetQsp outNet)
Sets the output ControlNet.
Definition: BundleResults.cpp:842
QList< Statistics > rmsImageResiduals() const
Returns the list of RMS image residuals statistics.
Definition: BundleResults.cpp:895
void setImagesAndParameters(QMap< QString, QStringList > imagesAndParameters)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:381
double sigmaCoord1StatisticsRms() const
Returns the RMS of the adjusted sigmas for coordinate 1.
Definition: BundleResults.cpp:1085
void setSigma0(double sigma0)
Sets the sigma0.
Definition: BundleResults.cpp:792
BundleResults & operator=(const BundleResults &src)
Assignment operator for BundleResults.
Definition: BundleResults.cpp:169
File name manipulation and expansion.
Definition: FileName.h:100
double elapsedTimeErrorProp() const
Returns the elapsed time for error propagation.
Definition: BundleResults.cpp:1255
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
int numberIgnoredPoints() const
Returns the number of ignored points.
Definition: BundleResults.cpp:612
void addProbabilityDistributionObservation(double obsValue, bool residuals)
QList< QPair< MaximumLikelihoodWFunctions, double > > maximumLikelihoodModels() const
void setQuantiles(unsigned int nodes)
Definition: StatCumProbDistDynCalc.cpp:107
QVector< Statistics > rmsImageTWISTSigmas() const
Returns the list of RMS image twist sigma statistics.
Definition: BundleResults.cpp:955
void initializeProbabilityDistribution(unsigned int nodes=20)
Initializes or resets the cumulative probability distribution of |R^2 residuals|.
Definition: BundleResults.cpp:517
void clear()
Function to clear out all values in a project essentially making it a new project object.
Definition: Project.cpp:459
QString minSigmaCoord1PointId() const
Returns the minimum sigma point id for coordinate 1.
Definition: BundleResults.cpp:1025
void setConverged(bool converged)
Sets if the bundle adjustment converged.
Definition: BundleResults.cpp:822
int numberFixedPoints() const
Returns the number of 'fixed' (ground) points.
Definition: BundleResults.cpp:576
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
void setIterations(int iterations)
Sets the number of iterations taken by the BundleAdjust.
Definition: BundleResults.cpp:852
Distance maxSigmaCoord1Distance() const
Returns the maximum sigma distance for coordinate 1.
Definition: BundleResults.cpp:975
int numberImageParameters() const
Returns the total number of image parameters.
Definition: BundleResults.cpp:1175
Distance minSigmaCoord3Distance() const
Returns the minimum sigma distance for coordinate 3.
Definition: BundleResults.cpp:1005
int numberMaximumLikelihoodModels() const
Returns how many maximum likelihood models were used in the bundle adjustment.
Definition: BundleResults.cpp:1322
double sigma0() const
Returns the Sigma0 of the bundle adjustment.
Definition: BundleResults.cpp:1235
double rmsRxy() const
Returns the RMS of the x and y residuals.
Definition: BundleResults.cpp:1135
QVector< BundleControlPointQsp > & bundleControlPoints()
Returns a reference to the BundleControlPoint vector.
Definition: BundleResults.cpp:1275
QList< Statistics > rmsImageLineResiduals() const
Returns the list of RMS image line residuals statistics.
Definition: BundleResults.cpp:885
int maximumLikelihoodModelIndex() const
Returns which step the bundle adjustment is on.
Definition: BundleResults.cpp:1332
void incrementNumberConstrainedImageParameters(int incrementAmount)
Increase the number of constrained image parameters.
Definition: BundleResults.cpp:702
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Serial Number list generator.
Definition: SerialNumberList.h:64
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:61
QVector< Statistics > rmsImageYSigmas() const
Returns the list of RMS image y sigma statistics.
Definition: BundleResults.cpp:915
void initialize()
Initializes the BundleResults to a default state where all numeric members are set to 0 or another de...
Definition: BundleResults.cpp:245
StatCumProbDistDynCalc cumulativeProbabilityDistribution() const
Returns the cumulative probability distribution of the |R^2 residuals|.
Definition: BundleResults.cpp:1343
double elapsedTime() const
Returns the elapsed time for the bundle adjustment.
Definition: BundleResults.cpp:1245
QVector< Statistics > rmsImageZSigmas() const
Returns the list of RMS image z sigma statistics.
Definition: BundleResults.cpp:925
void setMeters(double distanceInMeters)
Set the distance in meters.
Definition: Distance.cpp:96
void setNumberRejectedObservations(int numberObservations)
Sets the number of rejected observations.
Definition: BundleResults.cpp:646
Distance measurement, usually in meters.
Definition: Distance.h:34
void setRejectionLimit(double rejectionLimit)
Sets the rejection limit.
Definition: BundleResults.cpp:636
The main project for ipce.
Definition: Project.h:289
bool setNumberHeldImages(SerialNumberList pHeldSnList, SerialNumberList *pSnList)
void setRmsFromSigmaStatistics(double rmsFromSigmaCoord1Stats, double rmsFromSigmaCoord2Stats, double rmsFromSigmaCoord3Stats)
Sets the root mean square values of the adjusted sigmas for all three coordinates.
Definition: BundleResults.cpp:433
void setRmsImageResidualLists(QVector< Statistics > rmsImageLineResiduals, QVector< Statistics > rmsImageSampleResiduals, QVector< Statistics > rmsImageResiduals)
int degreesOfFreedom() const
Returns the degrees of freedom.
Definition: BundleResults.cpp:1225
double rmsRx() const
Returns the RMS of the x residuals.
Definition: BundleResults.cpp:1115
This class is used to approximate cumulative probibility distributions of a stream of observations wi...
Definition: StatCumProbDistDynCalc.h:65
void setBundleControlPoints(QVector< BundleControlPointQsp > controlPoints)
Sets the bundle control point vector.
Definition: BundleResults.cpp:832
void incrementFixedPoints()
Increase the number of 'fixed' (ground) points.
Definition: BundleResults.cpp:566
const BundleObservationVector & observations() const
Returns a reference to the observations used by the BundleAdjust.
Definition: BundleResults.cpp:1312
@ Rectangular
Body-fixed rectangular x/y/z coordinates.
Definition: SurfacePoint.h:141
void resetNumberConstrainedPointParameters()
Resets the number of contrained point parameters to 0.
Definition: BundleResults.cpp:674
void setElapsedTime(double time)
Sets the elapsed time for the bundle adjustment.
Definition: BundleResults.cpp:802
boost::numeric::ublas::vector< double > Vector
Definition for an Isis::LinearAlgebra::Vector of doubles.
Definition: LinearAlgebra.h:120
static QString modelToString(Model model)
Static method to return a string represtentation for a given MaximumLikelihoodWFunctions::Model enum.
Definition: MaximumLikelihoodWFunctions.cpp:355
QString maxSigmaCoord1PointId() const
Returns the maximum sigma point id for coordinate 1.
Definition: BundleResults.cpp:1035
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
CoordinateType
Defines the coordinate typ, units, and coordinate index for some of the output methods.
Definition: SurfacePoint.h:139
ConvergenceCriteria
This enum defines the options for the bundle adjustment's convergence.
Definition: BundleSettings.h:197
void incrementNumberConstrainedPointParameters(int incrementAmount)
Increase the number of contrained point parameters.
Definition: BundleResults.cpp:684
static MaximumLikelihoodWFunctions::Model stringToModel(QString modelName)
Definition: MaximumLikelihoodWFunctions.cpp:367
void setSigmaCoord1Range(Distance minCoord1Dist, Distance maxCoord1Dist, QString minCoord1PointId, QString maxCoord1PointId)
Sets the min and max sigma distances and point ids for coordinate 1.
Definition: BundleResults.cpp:383
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
QString maxSigmaCoord3PointId() const
Returns the maximum sigma point id for coordinate 3.
Definition: BundleResults.cpp:1075
void setNumberUnknownParameters(int numberParameters)
Sets the total number of parameters to solve for.
Definition: BundleResults.cpp:730
void addProbabilityDistributionObservation(double obsValue)
Adds an observation to the cumulative probability distribution of |R^2 residuals|.
Definition: BundleResults.cpp:538
void setNumberObservations(int numberObservations)
Sets the number of observations.
Definition: BundleResults.cpp:656
ControlNetQsp outputControlNet() const
Returns a shared pointer to the output control network.
Definition: BundleResults.cpp:1287
int numberHeldImages() const
Returns the number of 'held' images.
Definition: BundleResults.cpp:594
double sigmaCoord3StatisticsRms() const
Returns the RMS of the adjusted sigmas for coordinate 3.
Definition: BundleResults.cpp:1105
Distance maxSigmaCoord2Distance() const
Returns the maximum sigma distance for coordinate 2.
Definition: BundleResults.cpp:995
void addResidualsProbabilityDistributionObservation(double obsValue)
Adds an observation to the cumulative probability distribution of residuals used for reporting.
Definition: BundleResults.cpp:549
void setDegreesOfFreedom(double degreesOfFreedom)
Sets the degrees of freedom.
Definition: BundleResults.cpp:782
a control network
Definition: ControlNet.h:257
void computeSigma0(double dvtpv, BundleSettings::ConvergenceCriteria criteria)
Computes the sigma0 and stores it internally.
Definition: BundleResults.cpp:758
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
Isis exception class.
Definition: IException.h:91
BundleResults(QObject *parent=0)
Constructs a BundleResults object.
Definition: BundleResults.cpp:48
Distance minSigmaCoord1Distance() const
Returns the minimum sigma distance for coordinate 1.
Definition: BundleResults.cpp:965
double rejectionLimit() const
Returns the rejection limit.
Definition: BundleResults.cpp:1145
double sigmaCoord2StatisticsRms() const
Returns the RMS of the adjusted sigmas for coordinate 2.
Definition: BundleResults.cpp:1095
void maximumLikelihoodSetUp(QList< QPair< MaximumLikelihoodWFunctions::Model, double > > modelsWithQuantiles)
This method steps up the maximum likelihood estimation solution.
Definition: BundleResults.cpp:450
void setCorrMatImgsAndParams(QMap< QString, QStringList > imgsAndParams)
Set the images and their associated parameters of the correlation matrix.
Definition: BundleResults.cpp:1433
QVector< Statistics > rmsImageDECSigmas() const
Returns the list of RMS image declination sigma statistics.
Definition: BundleResults.cpp:945
double value(double cumProb)
Provides the value of the variable that has the given cumulative probility (according the current est...
Definition: StatCumProbDistDynCalc.cpp:182
double maximumLikelihoodModelQuantile(int modelIndex) const
Returns the quantile of the maximum likelihood model at the given index.
Definition: BundleResults.cpp:1387
QString minSigmaCoord3PointId() const
Returns the minimum sigma point id for coordinate 3.
Definition: BundleResults.cpp:1065
CorrelationMatrix correlationMatrix() const
Returns the Correlation Matrix.
Definition: BundleResults.cpp:1405
void setElapsedTimeErrorProp(double time)
Sets the elapsed time for error propegation.
Definition: BundleResults.cpp:812
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
double rmsRy() const
Returns the RMS of the y residuals.
Definition: BundleResults.cpp:1125
void setCovarianceFileName(FileName covarianceFileName)
Set the qmap of images and parameters.
Definition: CorrelationMatrix.cpp:359
void setRmsXYResiduals(double rx, double ry, double rxy)
Sets the root mean square of the x and y residuals.
Definition: BundleResults.cpp:624
int numberConstrainedTargetParameters() const
Return the number of constrained target parameters.
Definition: BundleResults.cpp:1205
void setCorrMatCovFileName(FileName name)
Set the covariance file name for the matrix used to calculate the correlation matrix.
Definition: BundleResults.cpp:1422
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:23
bool toBool(const QString &string)
Global function to convert from a string to a boolean.
Definition: IString.cpp:38
void setRmsImageResidualLists(QList< Statistics > rmsImageLineResiduals, QList< Statistics > rmsImageSampleResiduals, QList< Statistics > rmsImageResiduals)
Sets the root mean square image residual Statistics lists.
Definition: BundleResults.cpp:366
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
void incrementMaximumLikelihoodModelIndex()
Increases the value that indicates which stage the maximum likelihood adjustment is currently on.
Definition: BundleResults.cpp:558
void initializeResidualsProbabilityDistribution(unsigned int nodes=20)
Initializes or resets the cumulative probability distribution of residuals used for reporting.
Definition: BundleResults.cpp:527
Class provides maximum likelihood estimation functions for robust parameter estimation,...
Definition: MaximumLikelihoodWFunctions.h:49
void incrementIgnoredPoints()
Increase the number of ignored points.
Definition: BundleResults.cpp:602
void addObs(double obs)
Values for the estimated quantile positions are update as observations are added.
Definition: StatCumProbDistDynCalc.cpp:394
void computeDegreesOfFreedom()
Computes the degrees of freedom of the bundle adjustment and stores it internally.
Definition: BundleResults.cpp:738
void incrementHeldImages()
Increases the number of 'held' images.
Definition: BundleResults.cpp:584
void setObservations(BundleObservationVector observations)
Sets the vector of BundleObservations.
Definition: BundleResults.cpp:862
int numberRejectedObservations() const
Returns the number of observation that were rejected.
Definition: BundleResults.cpp:1155
@ Latitudinal
Planetocentric latitudinal (lat/lon/rad) coordinates.
Definition: SurfacePoint.h:140
QVector< Statistics > rmsImageXSigmas() const
Returns the list of RMS image x sigma statistics.
Definition: BundleResults.cpp:905
void resetNumberConstrainedTargetParameters()
Resets the number of constrained target parameters to 0.
Definition: BundleResults.cpp:710
Adds specific functionality to C++ strings.
Definition: IString.h:165
A container class for statistical results from a BundleAdjust solution.
Definition: BundleResults.h:82
Distance minSigmaCoord2Distance() const
Returns the minimum sigma distance for coordinate 2.
Definition: BundleResults.cpp:985
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
void setSigmaCoord3Range(Distance minCoord3Dist, Distance maxCoord3Dist, QString minCoord3PointId, QString maxCoord3PointId)
Sets the min and max sigma distances and point ids for coordinate 3.
Definition: BundleResults.cpp:417
void save(QXmlStreamWriter &stream, const Project *project) const
Saves the BundleResults object to an XML file.
Definition: BundleResults.cpp:1457
void setNumberImageParameters(int numberParameters)
Sets the number of image parameters.
Definition: BundleResults.cpp:666
QList< Statistics > rmsImageSampleResiduals() const
Returns the list of RMS image sample residuals statistics.
Definition: BundleResults.cpp:875
Q_DECLARE_METATYPE(Isis::BundleResults)
StatCumProbDistDynCalc residualsCumulativeProbabilityDistribution() const
Returns the cumulative probability distribution of the residuals used for reporting.
Definition: BundleResults.cpp:1353
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
This class is a container class for BundleObservations.
Definition: BundleObservationVector.h:55
void resizeSigmaStatisticsVectors(int numberImages)
Resizes all image sigma vectors.
Definition: BundleResults.cpp:337
~BundleResults()
Destroys this BundleResults object.
Definition: BundleResults.cpp:149
QVector< Statistics > rmsImageRASigmas() const
Returns the list of RMS image right ascension sigma statistics.
Definition: BundleResults.cpp:935