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

Statistics about the behavior of the algorithm. More...

#include <jade.simplex.hpp>

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

Public Member Functions

 stats ()
 Initializes a new instance of the class. More...
 
std::string str () const
 

Data Fields

size_t expansions
 The number of expansions that have occurred. More...
 
size_t evaluations
 The number of evaluations of the objective function. More...
 
size_t contractions_in
 The number of inside contractions that have occurred. More...
 
size_t contractions_out
 The number of outside contractions that have occurred. More...
 
size_t iterations
 The number of iterations that have executed. More...
 
size_t reflections
 The number of reflections that have occurred. More...
 
size_t shrinkages
 The number of shrinkages that have occurred. More...
 

Detailed Description

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

Statistics about the behavior of the algorithm.

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

Constructor & Destructor Documentation

◆ stats()

template<typename TValue >
jade::basic_simplex< TValue >::stats::stats ( )
inline

Initializes a new instance of the class.

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

466  : expansions (0)
467  , evaluations (0)
468  , contractions_in (0)
469  , contractions_out (0)
470  , iterations (0)
471  , reflections (0)
472  , shrinkages (0)
473  {
474  }

Member Function Documentation

◆ str()

template<typename TValue >
std::string jade::basic_simplex< TValue >::stats::str ( ) const
inline
Returns
A string representation of the class.

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

480  {
481  std::ostringstream out;
482  out << "evaluations: " << evaluations << std::endl
483  << "iterations: " << iterations << std::endl
484  << "reflections: " << reflections << std::endl
485  << "expansions: " << expansions << std::endl
486  << "contractions_in: " << contractions_in << std::endl
487  << "contractions_out: " << contractions_out << std::endl
488  << "shrinkages: " << shrinkages << std::endl;
489  return out.str();
490  }

Field Documentation

◆ contractions_in

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::contractions_in

The number of inside contractions that have occurred.

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

◆ contractions_out

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::contractions_out

The number of outside contractions that have occurred.

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

◆ evaluations

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::evaluations

The number of evaluations of the objective function.

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

◆ expansions

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::expansions

The number of expansions that have occurred.

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

◆ iterations

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::iterations

The number of iterations that have executed.

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

◆ reflections

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::reflections

The number of reflections that have occurred.

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

◆ shrinkages

template<typename TValue >
size_t jade::basic_simplex< TValue >::stats::shrinkages

The number of shrinkages that have occurred.

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


The documentation for this struct was generated from the following file:
jade::basic_simplex::stats::shrinkages
size_t shrinkages
The number of shrinkages that have occurred.
Definition: jade.simplex.hpp:460
jade::basic_simplex::stats::expansions
size_t expansions
The number of expansions that have occurred.
Definition: jade.simplex.hpp:430
jade::basic_simplex::stats::iterations
size_t iterations
The number of iterations that have executed.
Definition: jade.simplex.hpp:450
jade::basic_simplex::stats::reflections
size_t reflections
The number of reflections that have occurred.
Definition: jade.simplex.hpp:455
jade::basic_simplex::stats::contractions_out
size_t contractions_out
The number of outside contractions that have occurred.
Definition: jade.simplex.hpp:445
jade::basic_simplex::stats::evaluations
size_t evaluations
The number of evaluations of the objective function.
Definition: jade.simplex.hpp:435
jade::basic_simplex::stats::contractions_in
size_t contractions_in
The number of inside contractions that have occurred.
Definition: jade.simplex.hpp:440