ʻOhana
Population structure, admixture history, and selection using learning methods.
Public Types | Static Public Member Functions
jade::basic_simplex< TValue >::exit_condition Struct Reference

An indication of what caused the execute to temrinate. More...

#include <jade.simplex.hpp>

+ Collaboration diagram for jade::basic_simplex< TValue >::exit_condition:

Public Types

enum  type {
  delta, epsilon, iteration, length,
  timeout
}
 The exit condition. More...
 

Static Public Member Functions

static const char * str (const type value)
 

Detailed Description

template<typename TValue>
struct jade::basic_simplex< TValue >::exit_condition

An indication of what caused the execute to temrinate.

Definition at line 32 of file jade.simplex.hpp.

Member Enumeration Documentation

◆ type

template<typename TValue >
enum jade::basic_simplex::exit_condition::type

The exit condition.

Enumerator
delta 

The minimum delta occurred.

epsilon 

The minimum epsilon occurred.

iteration 

The maximum iteration occurred.

length 

The minimum length occurred.

timeout 

The maximum timeout occurred.

Definition at line 37 of file jade.simplex.hpp.

38  {
39  delta, ///< The minimum delta occurred.
40  epsilon, ///< The minimum epsilon occurred.
41  iteration, ///< The maximum iteration occurred.
42  length, ///< The minimum length occurred.
43  timeout ///< The maximum timeout occurred.
44  };

Member Function Documentation

◆ str()

template<typename TValue >
static const char* jade::basic_simplex< TValue >::exit_condition::str ( const type  value)
inlinestatic
Returns
A string representation of the type.
Parameters
valueThe type to format.

Definition at line 49 of file jade.simplex.hpp.

51  {
52  switch (value)
53  {
54  #define CASE(E) case E: return #E
55  CASE(delta);
56  CASE(epsilon);
57  CASE(iteration);
58  CASE(length);
59  CASE(timeout);
60  #undef CASE
61  }
62 
63  return nullptr;
64  }

The documentation for this struct was generated from the following file:
jade::basic_simplex::exit_condition::length
@ length
The minimum length occurred.
Definition: jade.simplex.hpp:42
jade::basic_simplex::exit_condition::epsilon
@ epsilon
The minimum epsilon occurred.
Definition: jade.simplex.hpp:40
jade::basic_simplex::exit_condition::timeout
@ timeout
The maximum timeout occurred.
Definition: jade.simplex.hpp:43
jade::basic_simplex::exit_condition::delta
@ delta
The minimum delta occurred.
Definition: jade.simplex.hpp:39
jade::basic_simplex::exit_condition::iteration
@ iteration
The maximum iteration occurred.
Definition: jade.simplex.hpp:41