src
fields2cover
objectives
sg_obj
swath_length.cpp
Go to the documentation of this file.
1
//=============================================================================
2
// Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3
// Author: Gonzalo Mier
4
// BSD-3 License
5
//=============================================================================
6
7
#include "
fields2cover/objectives/sg_obj/swath_length.h
"
8
9
namespace
f2c::obj
{
10
11
double
SwathLength::computeCost
(
const
F2CSwath
& s) {
12
return
s.
length
();
13
}
14
15
}
// namespace f2c::obj
16
f2c::obj::SwathLength::computeCost
double computeCost(const F2CSwath &s) override
Compute the cost function.
Definition:
swath_length.cpp:11
swath_length.h
f2c::types::Swath
Definition:
Swath.h:23
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
f2c::types::Swath::length
double length() const
Definition:
Swath.cpp:60
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31