16 return std::accumulate(
swaths.begin(),
swaths.end(), 0.0,
17 [
this] (
double init,
const auto& s) {
18 return init + this->computeCost(s);});
22 return std::accumulate(
swaths.begin(),
swaths.end(), 0.0,
23 [
this] (
double init,
const auto& s) {
24 return init + this->computeCost(s);});
32 return std::accumulate(
cells.begin(),
cells.end(), 0.0,
33 [
this] (
double init,
const auto& s) {
34 return init + this->computeCost(s);});
54 return std::accumulate(
swaths.begin(),
swaths.end(), 0.0,
55 [
this, &c] (
double init,
const auto& s) {return init + computeCost(c, s);});
60 return std::accumulate(
swaths.begin(),
swaths.end(), 0.0,
61 [
this, &c] (
double init,
const auto& s) {return init + computeCost(c, s);});
67 return std::accumulate(
swaths.begin(),
swaths.end(), 0.0,
68 [
this, &c] (
double init,
const auto& s) {return init + computeCost(c, s);});
73 return std::accumulate(
swaths.begin(),
swaths.end(), 0.0,
74 [
this, &c] (
double init,
const auto& s) {return init + computeCost(c, s);});