![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Potential cluster of multiple operating areas. More...
#include <FMTOperatingAreaCluster.h>
Public Member Functions | |
| FMTOperatingAreaCluster ()=default | |
| Default constructor for FMTOperatingAreaCluster. | |
| FMTOperatingAreaCluster (const FMTOperatingAreaClusterBinary &p_localcentroid, const std::vector< FMTOperatingAreaClusterBinary > &p_neighborsbinaries) | |
| Incomplete constructor for FMTOperatingAreaCluster from a centroid and its neighbors binaries. | |
| FMTOperatingAreaCluster (const FMTOperatingAreaCluster &p_basecluster, const double &p_minimalarea, const double &p_maximalarea) | |
| Complete constructor for FMTOperatingAreaCluster from a base cluster and its minimal and maximal area. | |
| FMTOperatingAreaCluster (const FMTOperatingAreaCluster &)=default | |
| Default copy constructor for FMTOperatingAreaCluster. | |
| FMTOperatingAreaCluster & | operator= (const FMTOperatingAreaCluster &)=default |
| Default copy assignment operator for FMTOperatingAreaCluster. | |
| ~FMTOperatingAreaCluster ()=default | |
| Default destructor for FMTOperatingAreaCluster. | |
| const FMTOperatingAreaClusterBinary & | getBinary (const Core::FMTMask &mask) const |
| Return the binary of the cluster corresponding to a given mask. | |
| FMTOperatingAreaClusterBinary | getCentroid () const |
| Return the centroid binary of the cluster. | |
| std::vector< FMTOperatingAreaClusterBinary > | getBinaries () const |
| Return the binaries of the cluster. | |
| int | getMaximalObjectiveVariable () const |
| Return the maximal objective variable. | |
| int | getMinimalObjectiveVariable () const |
| Return the minimal objective variable. | |
| double | getMinimalArea () const |
| Get the minimal area of the potential cluster considering the number of binaries in the cluster. | |
| double | getMaximalArea () const |
| Get the maximal area of the potential cluster considering the number of binaries in the cluster. | |
| double | getMaximalStats () const |
| Get the maximal statistic for the whole cluster. | |
| double | getRealMinimalArea () const |
| Return the minimal area member of the cluster. | |
| double | getRealMaximalArea () const |
| Return the maximal area member of the cluster. | |
| double | getTotalPotentialArea () const |
| Get the maximal potential area of the cluster. | |
| bool | isValidArea (const double &area) const |
| Check if an area is valid for the cluster (between the bounds). | |
| void | setMaximalObjectiveVariable (const int &lmaxvar) |
| Set the maximal objective variable of the cluster. | |
| void | setMinimalObjectiveVariable (const int &lminvar) |
| Set the minimal objective variable of the cluster. | |
| void | setMinimalArea (const double &newminimalarea) |
| Set the minimal area of the cluster. | |
| void | setMaximalArea (const double &newmaximalarea) |
| Set the potential maximal area of the cluster. | |
| bool | isValidAreaBounds () const |
| Validate that the minimal and maximal area set by the user respect the binaries present in the cluster. | |
| FMTOperatingAreaCluster | getFilteredCluster (const Core::FMTMask &filterMask) const |
| Return a cluster with the binaries not falling in a mask definition removed, which can reduce the number of binaries. | |
| std::vector< Core::FMTMask > | getAllMasks () const |
| Return all the masks contained by the cluster, including the operating area centroid. | |
Friends | |
| class | boost::serialization::access |
Potential cluster of multiple operating areas.
Each operating area is represented by a FMTOperatingAreaClusterBinary and the centroid of the cluster is also a FMTOperatingAreaClusterBinary; the cluster is active if the centroid binary is active.
|
default |
Default constructor for FMTOperatingAreaCluster.
| Heuristics::FMTOperatingAreaCluster::FMTOperatingAreaCluster | ( | const FMTOperatingAreaClusterBinary & | p_localcentroid, |
| const std::vector< FMTOperatingAreaClusterBinary > & | p_neighborsbinaries | ||
| ) |
Incomplete constructor for FMTOperatingAreaCluster from a centroid and its neighbors binaries.
| [in] | p_localcentroid | the centroid binary. |
| [in] | p_neighborsbinaries | the neighbors binaries. |
| Heuristics::FMTOperatingAreaCluster::FMTOperatingAreaCluster | ( | const FMTOperatingAreaCluster & | p_basecluster, |
| const double & | p_minimalarea, | ||
| const double & | p_maximalarea | ||
| ) |
Complete constructor for FMTOperatingAreaCluster from a base cluster and its minimal and maximal area.
| [in] | p_basecluster | the base cluster. |
| [in] | p_minimalarea | the minimal area. |
| [in] | p_maximalarea | the maximal area. |
|
default |
Default copy constructor for FMTOperatingAreaCluster.
|
default |
Default destructor for FMTOperatingAreaCluster.
| std::vector< Core::FMTMask > Heuristics::FMTOperatingAreaCluster::getAllMasks | ( | ) | const |
Return all the masks contained by the cluster, including the operating area centroid.
|
inline |
Return the binaries of the cluster.
| const FMTOperatingAreaClusterBinary & Heuristics::FMTOperatingAreaCluster::getBinary | ( | const Core::FMTMask & | mask | ) | const |
Return the binary of the cluster corresponding to a given mask.
| [in] | mask | the mask. |
|
inline |
Return the centroid binary of the cluster.
| FMTOperatingAreaCluster Heuristics::FMTOperatingAreaCluster::getFilteredCluster | ( | const Core::FMTMask & | filterMask | ) | const |
Return a cluster with the binaries not falling in a mask definition removed, which can reduce the number of binaries.
| [in] | filterMask | the filter mask. |
| double Heuristics::FMTOperatingAreaCluster::getMaximalArea | ( | ) | const |
Get the maximal area of the potential cluster considering the number of binaries in the cluster.
|
inline |
Return the maximal objective variable.
| double Heuristics::FMTOperatingAreaCluster::getMaximalStats | ( | ) | const |
Get the maximal statistic for the whole cluster.
| double Heuristics::FMTOperatingAreaCluster::getMinimalArea | ( | ) | const |
Get the minimal area of the potential cluster considering the number of binaries in the cluster.
|
inline |
Return the minimal objective variable.
|
inline |
Return the maximal area member of the cluster.
|
inline |
Return the minimal area member of the cluster.
| double Heuristics::FMTOperatingAreaCluster::getTotalPotentialArea | ( | ) | const |
Get the maximal potential area of the cluster.
| bool Heuristics::FMTOperatingAreaCluster::isValidArea | ( | const double & | area | ) | const |
Check if an area is valid for the cluster (between the bounds).
| [in] | area | the area. |
| bool Heuristics::FMTOperatingAreaCluster::isValidAreaBounds | ( | ) | const |
Validate that the minimal and maximal area set by the user respect the binaries present in the cluster.
|
default |
Default copy assignment operator for FMTOperatingAreaCluster.
| void Heuristics::FMTOperatingAreaCluster::setMaximalArea | ( | const double & | newmaximalarea | ) |
Set the potential maximal area of the cluster.
| [in] | newmaximalarea | the new maximal area. |
| void Heuristics::FMTOperatingAreaCluster::setMaximalObjectiveVariable | ( | const int & | lmaxvar | ) |
Set the maximal objective variable of the cluster.
| [in] | lmaxvar | the maximal objective variable. |
| void Heuristics::FMTOperatingAreaCluster::setMinimalArea | ( | const double & | newminimalarea | ) |
Set the minimal area of the cluster.
| [in] | newminimalarea | the new minimal area. |
| void Heuristics::FMTOperatingAreaCluster::setMinimalObjectiveVariable | ( | const int & | lminvar | ) |
Set the minimal objective variable of the cluster.
| [in] | lminvar | the minimal objective variable. |
|
friend |