The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
ExtinctionPrevention Class Reference

A helper class that takes a the current population, compares it with the previous population and ensures that the current population contains at least minCount individuals of each model type (copying them over from the previous population) More...

Public Member Functions

 ExtinctionPrevention (String[] curTypes, double[] curIndices, double[] curScores, String[] prevTypes, double[] prevIndices, double[] prevScores, int minCount)
 
void doIt ()
 
void printReplacementList ()
 
void printCurMap ()
 
double[][] getReplacementList ()
 

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

A helper class that takes a the current population, compares it with the previous population and ensures that the current population contains at least minCount individuals of each model type (copying them over from the previous population)

Todo:
Code is hard to understand and could use cleaning up

Constructor & Destructor Documentation

ExtinctionPrevention ( String[]  curTypes,
double[]  curIndices,
double[]  curScores,
String[]  prevTypes,
double[]  prevIndices,
double[]  prevScores,
int  minCount 
)
inline

Member Function Documentation

void doIt ( )
inline
double [][] getReplacementList ( )
inline
static void main ( String[]  args)
inlinestatic
void printCurMap ( )
inline
void printReplacementList ( )
inline

The documentation for this class was generated from the following file: