MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / GetStatistic

Method GetStatistic

isis/src/control/objs/ControlPoint/ControlPoint.cpp:1836–1846  ·  view source on GitHub ↗

* This function will call a given method on every control measure that * this point has. * * @param statFunc The function to use for data collection * * @returns The gathered statistic * * @history 2011-03-08 Debbie A. Cook - Changed to get statistics for all * point types and not just Candidate. */

Source from the content-addressed store, hash-verified

1834 * point types and not just Candidate.
1835 */
1836 Statistics ControlPoint::GetStatistic(
1837 double(ControlMeasure::*statFunc)() const) const {
1838 Statistics stats;
1839 foreach(ControlMeasure * cm, *measures) {
1840 if (!cm->IsIgnored()) {
1841 stats.AddData((cm->*statFunc)());
1842 }
1843 }
1844
1845 return stats;
1846 }
1847
1848
1849 Statistics ControlPoint::GetStatistic(long dataType) const {

Callers 6

GetPointDoubleStatsMethod · 0.80
AverageResidualMethod · 0.80
GetMaximumResidualMethod · 0.80
IsisMainFunction · 0.80
filterMethod · 0.80
filterMethod · 0.80

Calls 5

GetNumericalValueMethod · 0.80
GetLogDataMethod · 0.80
foreachFunction · 0.70
IsIgnoredMethod · 0.45
AddDataMethod · 0.45

Tested by

no test coverage detected