Zoltan2
|
#include <Zoltan2_ImbalanceMetrics.hpp>
Public Member Functions | |
ImbalanceMetrics (std::string mname) | |
Constructor. More... | |
ImbalanceMetrics () | |
Constructor. More... | |
virtual const std::string & | getMetricType () const |
Get the class type of the metric. More... | |
virtual void | printLine (std::ostream &os) const |
Print a standard line of data that fits under the header. More... | |
void | setNorm (multiCriteriaNorm normVal) |
Set or reset the norm. More... | |
multiCriteriaNorm | getNorm () |
Get the norm. More... | |
void | setLocalSum (scalar_t x) |
Set the sum on the local process. More... | |
void | setGlobalSum (scalar_t x) |
Set the global sum. More... | |
void | setGlobalMin (scalar_t x) |
Set the global minimum across parts. More... | |
void | setGlobalMax (scalar_t x) |
Set the global maximum across parts. More... | |
void | setMaxImbalance (scalar_t x) |
Set the imbalance of the worst imbalanced part. This is what we normally call the imbalance of a partition. More... | |
void | setAvgImbalance (scalar_t x) |
Set the average imbalance of all parts. More... | |
scalar_t | getLocalSum () const |
Get the sum on the local process. More... | |
scalar_t | getGlobalSum () const |
Get the global sum for all parts. More... | |
scalar_t | getGlobalMin () const |
Get the global minimum across all parts. More... | |
scalar_t | getGlobalMax () const |
Get the global maximum across all parts. More... | |
scalar_t | getMaxImbalance () const |
Get the imbalance of the most imbalanced part. This is what we normally call the imbalance of a partition. More... | |
scalar_t | getAvgImbalance () const |
Get the average of the part imbalances. More... | |
virtual const std::vector < std::string > & | getMetrics () const |
Public Member Functions inherited from Zoltan2::BaseClassMetrics< scalar_t > | |
BaseClassMetrics () | |
Constructor - for compiling but not used. More... | |
BaseClassMetrics (int memCount, std::string mname) | |
Constructor. More... | |
BaseClassMetrics (int memCount) | |
Constructor. More... | |
virtual | ~BaseClassMetrics () |
const std::string & | getName () const |
Get the name of the item measured. More... | |
void | setName (std::string name) |
Set or reset the name. More... | |
bool | hasMetricValue (const std::string &metric_name) const |
scalar_t | getMetricValue (const std::string &metric_name) const |
void | setMetricValue (const std::string &metric_name, scalar_t value) const |
size_t | convertMetricNameToIndex (const std::string &metric_name) const |
Static Public Member Functions | |
static void | printHeader (std::ostream &os) |
Print a standard header. More... | |
Static Public Attributes | |
static std::string | static_metricTypeName_ = IMBALANCE_METRICS_TYPE_NAME |
static std::vector< std::string > | static_metricNames_ |
Static Public Attributes inherited from Zoltan2::BaseClassMetrics< scalar_t > | |
static std::string | static_unknown_metricTypeName_ |
static std::vector< std::string > | static_metricNames_ = {} |
static std::vector< std::string > | static_allMetricNames_ |
class containing the metrics for one measurable item.
Definition at line 26 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Constructor.
Definition at line 33 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Constructor.
Definition at line 36 of file Zoltan2_ImbalanceMetrics.hpp.
|
inlinevirtual |
Get the class type of the metric.
Reimplemented from Zoltan2::BaseClassMetrics< scalar_t >.
Definition at line 39 of file Zoltan2_ImbalanceMetrics.hpp.
|
static |
Print a standard header.
Definition at line 117 of file Zoltan2_ImbalanceMetrics.hpp.
|
virtual |
Print a standard line of data that fits under the header.
Reimplemented from Zoltan2::BaseClassMetrics< scalar_t >.
Definition at line 127 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set or reset the norm.
Definition at line 48 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the norm.
Definition at line 51 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set the sum on the local process.
Definition at line 54 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set the global sum.
Definition at line 57 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set the global minimum across parts.
Definition at line 60 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set the global maximum across parts.
Definition at line 63 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set the imbalance of the worst imbalanced part. This is what we normally call the imbalance of a partition.
Definition at line 66 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Set the average imbalance of all parts.
Definition at line 69 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the sum on the local process.
Definition at line 72 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the global sum for all parts.
Definition at line 75 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the global minimum across all parts.
Definition at line 78 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the global maximum across all parts.
Definition at line 81 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the imbalance of the most imbalanced part. This is what we normally call the imbalance of a partition.
Definition at line 86 of file Zoltan2_ImbalanceMetrics.hpp.
|
inline |
Get the average of the part imbalances.
Definition at line 89 of file Zoltan2_ImbalanceMetrics.hpp.
|
inlinevirtual |
method is enforced by the base class.
Reimplemented from Zoltan2::BaseClassMetrics< scalar_t >.
Definition at line 92 of file Zoltan2_ImbalanceMetrics.hpp.
|
static |
a static string name indicating my class name.
class name for string - used to identify by parameter lists.
Definition at line 95 of file Zoltan2_ImbalanceMetrics.hpp.
|
static |
a static vector of strings.
all metrics for this class.
Definition at line 98 of file Zoltan2_ImbalanceMetrics.hpp.