OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <SampleIndividual.h>
Public Types | |
typedef std::vector< double > | genes_t |
representation of genes More... | |
typedef std::vector< std::string > | names_t |
gene names More... | |
typedef std::vector< double > | objectives_t |
objectives array More... | |
Public Member Functions | |
SampleIndividual () | |
SampleIndividual (names_t names) | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
serialization of structure More... | |
int | getIndex (std::string name) |
std::string | getName (size_t i) |
void | print (std::ostream &out) const |
Public Attributes | |
genes_t | genes |
genes of an individual More... | |
objectives_t | objectives |
values of objectives of an individual More... | |
unsigned int | id = 0 |
id More... | |
Private Attributes | |
names_t | names_m |
gene names More... | |
Definition at line 37 of file SampleIndividual.h.
typedef std::vector<double> SampleIndividual::genes_t |
representation of genes
Definition at line 42 of file SampleIndividual.h.
typedef std::vector<std::string> SampleIndividual::names_t |
gene names
Definition at line 44 of file SampleIndividual.h.
typedef std::vector<double> SampleIndividual::objectives_t |
objectives array
Definition at line 46 of file SampleIndividual.h.
|
inline |
Definition at line 48 of file SampleIndividual.h.
|
inline |
Definition at line 51 of file SampleIndividual.h.
References genes.
|
inline |
Definition at line 72 of file SampleIndividual.h.
References begin(), end(), Expressions::find(), name, and names_m.
|
inline |
Definition at line 83 of file SampleIndividual.h.
References names_m.
|
inline |
Definition at line 87 of file SampleIndividual.h.
References endl(), genes, and names_m.
Referenced by operator<<().
|
inline |
serialization of structure
Definition at line 59 of file SampleIndividual.h.
References genes, id, and objectives.
genes_t SampleIndividual::genes |
genes of an individual
Definition at line 66 of file SampleIndividual.h.
Referenced by print(), SampleIndividual(), and serialize().
unsigned int SampleIndividual::id = 0 |
|
private |
gene names
Definition at line 95 of file SampleIndividual.h.
Referenced by getIndex(), getName(), and print().
objectives_t SampleIndividual::objectives |
values of objectives of an individual
Definition at line 68 of file SampleIndividual.h.
Referenced by serialize().