MCPcopy Create free account
hub / github.com/MITK/MITK / GetMean

Method GetMean

Modules/ImageStatistics/src/mitkPointSetStatisticsCalculator.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87double mitk::PointSetStatisticsCalculator::GetMean(std::vector<double> list)
88{
89if (list.empty()) return 0;
90double mean = 0;
91for(std::vector<double>::size_type i=0; i<list.size(); i++)
92 {
93 mean += list.at(i);
94 }
95mean /= list.size();
96return mean;
97}
98
99double mitk::PointSetStatisticsCalculator::GetMedian(std::vector<double> list)
100{

Calls 4

atMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
FillMethod · 0.45