Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
BIN
trunk/paradiseo-eo/doc/latex/Helvetica.ttf
Normal file
BIN
trunk/paradiseo-eo/doc/latex/Helvetica.ttf
Normal file
Binary file not shown.
39
trunk/paradiseo-eo/doc/latex/Makefile
Normal file
39
trunk/paradiseo-eo/doc/latex/Makefile
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
all clean: refman.dvi
|
||||
|
||||
ps: refman.ps
|
||||
|
||||
pdf: refman.pdf
|
||||
|
||||
ps_2on1: refman_2on1.ps
|
||||
|
||||
pdf_2on1: refman_2on1.pdf
|
||||
|
||||
refman.ps: refman.dvi
|
||||
dvips -o refman.ps refman.dvi
|
||||
|
||||
refman.pdf: refman.ps
|
||||
ps2pdf refman.ps refman.pdf
|
||||
|
||||
refman.dvi: refman.tex doxygen.sty
|
||||
echo "Running latex..."
|
||||
latex refman.tex
|
||||
echo "Running makeindex..."
|
||||
makeindex refman.idx
|
||||
echo "Rerunning latex...."
|
||||
latex refman.tex
|
||||
latex_count=5 ; \
|
||||
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
|
||||
do \
|
||||
echo "Rerunning latex...." ;\
|
||||
latex refman.tex ;\
|
||||
latex_count=`expr $$latex_count - 1` ;\
|
||||
done
|
||||
|
||||
refman_2on1.ps: refman.ps
|
||||
psnup -2 refman.ps >refman_2on1.ps
|
||||
|
||||
refman_2on1.pdf: refman_2on1.ps
|
||||
ps2pdf refman_2on1.ps refman_2on1.pdf
|
||||
|
||||
clean:
|
||||
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out refman.pdf
|
||||
349
trunk/paradiseo-eo/doc/latex/annotated.tex
Normal file
349
trunk/paradiseo-eo/doc/latex/annotated.tex
Normal file
|
|
@ -0,0 +1,349 @@
|
|||
\section{EO Class List}
|
||||
Here are the classes, structs, unions and interfaces with brief descriptions:\begin{CompactList}
|
||||
\item\contentsline{section}{{\bf eo1Pt\-Bit\-Crossover} (Eo1Pt\-Bit\-Xover --$>$ classic 1-point crossover )}{\pageref{classeo1_pt_bit_crossover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Aged$<$ Object $>$} (Eo\-Age is a template class that adds an age to an object.$\backslash$ Requisites for template instantiation are that the object must admit a default ctor and a copy ctor )}{\pageref{classeo_aged}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Algo$<$ EOT $>$} (This is a generic class for population-transforming algorithms )}{\pageref{classeo_algo}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Arithmetic\-Crossover} (Eo\-Hypercube\-Crossover --$>$ uniform choice in hypercube == arithmetical with different values for each coordinate )}{\pageref{classeo_arithmetic_crossover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Assembled\-Fitness\-Average\-Stat$<$ EOT $>$} (Average fitness values of a population, where the fitness is of type eo\-Scalar\-Assembled\-Fitness )}{\pageref{classeo_assembled_fitness_average_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Assembled\-Fitness\-Best\-Stat$<$ EOT $>$} (Fitness values of best individuum in a population, where the fitness is of type eo\-Scalar\-Assembled\-Fitness )}{\pageref{classeo_assembled_fitness_best_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Atom\-Exchange$<$ Atom $>$} (A helper class for choosing which genes to exchange )}{\pageref{classeo_atom_exchange}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Average\-Stat$<$ EOT $>$} (Average fitness of a population )}{\pageref{classeo_average_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Best\-Fitness\-Stat$<$ EOT $>$} (Best fitness of a population )}{\pageref{classeo_best_fitness_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Best\-Select$<$ EOT $>$} (Eo\-Best\-Select: a selection method that always return the best (mainly for testing purposes) )}{\pageref{classeo_best_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-BF$<$ A1, A2, R $>$} (Basic Binary Functor )}{\pageref{classeo_b_f}}{}
|
||||
\item\contentsline{section}{{\bf Biased\-Node\-Selector} (A node selector that does a specified number of rounds ignoring terminals )}{\pageref{class_biased_node_selector}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Binary\-Functor\-Counter$<$ Binary\-Functor $>$} (Generic counter class that counts the number of times a binary function is used )}{\pageref{classeo_binary_functor_counter}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bin\-Clone\-Op$<$ EOT $>$} (Binary clone: two operands, only the first could be modified )}{\pageref{classeo_bin_clone_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bin\-Gen\-Op$<$ EOT $>$} (Wrapper for binop: here we use select method of {\bf eo\-Populator}{\rm (p.\,\pageref{classeo_populator})} but we could also have an embedded selector to select the second parent )}{\pageref{classeo_bin_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bin\-Op$<$ EOType $>$} (Binary genetic operator: subclasses {\bf eo\-Op}{\rm (p.\,\pageref{classeo_op})}, and defines basically the operator() with two operands, only the first one can be modified When defining your own, make sure that you return a boolean value indicating that you have changed the content )}{\pageref{classeo_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit$<$ Fit\-T $>$} (Implementation of bitstring chromosome )}{\pageref{classeo_bit}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Bit\-Flip} (Eo\-Bit\-Flip --$>$ changes 1 bit )}{\pageref{classeo_bit_bit_flip}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Gx\-Over$<$ Chrom $>$} (Eo\-Bit\-Gx\-Over --$>$ Npts crossover when bistd::string considered as a std::string of binary-encoded genes (exchanges genes) Is anybody still using it apart from historians ??? :-) )}{\pageref{classeo_bit_gx_over}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Inversion$<$ Chrom $>$} (Eo\-Bit\-Inversion: inverts the bits of the chromosome between an interval )}{\pageref{classeo_bit_inversion}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Mutation$<$ Chrom $>$} (Eo\-Bit\-Mutation --$>$ classical mutation )}{\pageref{classeo_bit_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Next$<$ Chrom $>$} (Eo\-Bit\-Next --$>$ next value when bitstring considered as binary value )}{\pageref{classeo_bit_next}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Op\-Factory$<$ EOT $>$} ({\bf EO}{\rm (p.\,\pageref{class_e_o})} Factory )}{\pageref{classeo_bit_op_factory}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bit\-Prev$<$ Chrom $>$} (Eo\-Bit\-Prev --$>$ previous value when bitstring treated as binary value )}{\pageref{classeo_bit_prev}}{}
|
||||
\item\contentsline{section}{{\bf boolean\_\-generator} (The class boolean\_\-generator can be used in the STL generate function to easily generate random booleans with a specified bias )}{\pageref{classboolean__generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Boolean\-Generator} (The class eo\-Boolean\-Generator can be used in the STL generate function to easily generate random booleans with a specified bias )}{\pageref{classeo_boolean_generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Boolean\-Init} (The class eo\-Boolean\-Init can be used in the STL apply function to easily generate random booleans with a specified bias )}{\pageref{classeo_boolean_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Bool\-Flip} (Simple boolean mutation - to be used in generic eo\-Op's )}{\pageref{classeo_bool_flip}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Branch\-Mutation$<$ FType, Node $>$} (Eo\-Branch\-Mutation --$>$ replace a subtree with a randomly created subtree )}{\pageref{classeo_branch_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Breed$<$ EOT $>$} (Breeding: combination of selecting and transforming a population )}{\pageref{classeo_breed}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Cellular\-Easy\-EA$<$ EOT $>$} (The abstract cellular easy algorithm )}{\pageref{classeo_cellular_easy_e_a}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Check\-Point$<$ EOT $>$} (Eo\-Check\-Point is a container class )}{\pageref{classeo_check_point}}{}
|
||||
\item\contentsline{section}{{\bf eo\-CMABreed$<$ Fit\-T $>$} (TODO, handle bounds )}{\pageref{classeo_c_m_a_breed}}{}
|
||||
\item\contentsline{section}{{\bf eo\-CMAInit$<$ Fit\-T $>$} (TODO, handle bounds )}{\pageref{classeo_c_m_a_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Collapse\-Subtree\-Mutation$<$ FType, Node $>$} (Eo\-Collapse\-Subtree --$>$ replace a subtree with a randomly chosen terminal )}{\pageref{classeo_collapse_subtree_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Combined\-Continue$<$ EOT $>$} (Combined continuators - logical AND: Continues until one of the embedded continuators says halt! )}{\pageref{classeo_combined_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Combined\-Init$<$ EOT $>$} (Combined INIT: a proportional recombination of {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} objects )}{\pageref{classeo_combined_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Comma\-Replacement$<$ EOT $>$} (ES type of replacement strategy: ignore parents, truncate offspring )}{\pageref{classeo_comma_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Continue$<$ EOT $>$} (Termination condition for the genetic algorithm Takes the population as input, returns true for continue, false for termination )}{\pageref{classeo_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Counted\-Dyn\-Update} (An {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} to update an {\bf eo\-Updatable}{\rm (p.\,\pageref{classeo_updatable})} object every given tic )}{\pageref{classeo_counted_dyn_update}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Counted\-State\-Saver} (Eo\-Updater that saves a state every given generations )}{\pageref{classeo_counted_state_saver}}{}
|
||||
\item\contentsline{section}{{\bf Cov} (Single covariance between two variates )}{\pageref{class_cov}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Ctrl\-CContinue$<$ EOT $>$} (Ctrl C handling: this {\bf eo\-Continue}{\rm (p.\,\pageref{classeo_continue})} tells whether the user pressed Ctrl C )}{\pageref{classeo_ctrl_c_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Bit\-Flip$<$ Chrom $>$} (Eo\-Det\-Bit\-Flip --$>$ changes exactly k bits )}{\pageref{classeo_det_bit_flip}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Deterministic\-Sa\-DReplacement$<$ EOT $>$} (Eo\-Deterministic\-Sa\-DReplacement: replacement strategy that is just, in sequence saves best and kill worse from parents + saves best and kill worse from offspring + merge remaining (neither save nor killed) parents and offspring + reduce that merged population = returns reduced pop + best parents + best offspring )}{\pageref{classeo_deterministic_sa_d_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Deterministic\-Survive\-And\-Die$<$ EOT $>$} (An instance (theonly one as of today, Dec )}{\pageref{classeo_deterministic_survive_and_die}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Select$<$ EOT $>$} (Eo\-Det\-Select selects many individuals determinisctically )}{\pageref{classeo_det_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Tournament\-Select$<$ EOT $>$} (Eo\-Det\-Tournament\-Select: a selection method that selects ONE individual by deterministic tournament -MS- 24/10/99 )}{\pageref{classeo_det_tournament_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Tournament\-Truncate$<$ EOT $>$} (Truncate class based on a repeated deterministic (reverse!) tournament To be used in SSGA-like replacements (e.g )}{\pageref{classeo_det_tournament_truncate}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Tournament\-Truncate\-Split$<$ EOT $>$} (Reduce\-Split class based on a repeated deterministic (reverse!) tournament To be used in SSGA-like replacements (e.g )}{\pageref{classeo_det_tournament_truncate_split}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Tournament\-Worth\-Select$<$ EOT, Worth\-T $>$} (An instance of eo\-Select\-Perf2Worth that does selection from the Worthes using a .. )}{\pageref{classeo_det_tournament_worth_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Det\-Uniform\-Mutation$<$ EOT $>$} (Eo\-Det\-Uniform\-Mutation --$>$ changes exactly k values of the std::vector by uniform choice with range epsilon )}{\pageref{classeo_det_uniform_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Distance$<$ EOT $>$} (This is a generic class for distance functors: takes 2 things ane returns a double )}{\pageref{classeo_distance}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Distrib\-Updater$<$ EOT $>$} (Base class for Distribution Evolution Algorithms within {\bf EO}{\rm (p.\,\pageref{class_e_o})}: the update rule of distribution )}{\pageref{classeo_distrib_updater}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Distribution$<$ EOT $>$} (Abstract class for Distribution Evolution Algorithms within {\bf EO}{\rm (p.\,\pageref{class_e_o})}: the distribution itself )}{\pageref{classeo_distribution}}{}
|
||||
\item\contentsline{section}{{\bf d\-Matrix} (A helper class for Sharing - to hold distances )}{\pageref{classd_matrix}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Dominance\-Map$<$ Eo\-Type $>$} (Eo\-Dominance\-Map, utility class to calculate and maintain a map (std::vector$<$std::vector$<$bool$>$ $>$) of pareto dominance statistics )}{\pageref{classeo_dominance_map}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Double\-Exchange} (Discrete crossover == exchange of values )}{\pageref{classeo_double_exchange}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Double\-Intermediate} (Intermediate crossover == linear combination )}{\pageref{classeo_double_intermediate}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Drawable$<$ Object $>$} (Eo\-Drawable is a template class that adds a drawing interface to an object.$\backslash$ Requisites for template instantiation are that the object must admit a default ctor and a copy ctor )}{\pageref{classeo_drawable}}{}
|
||||
\item\contentsline{section}{{\bf Dummy} (Test program for the general operator - millenium version! uses dummy individuals )}{\pageref{struct_dummy}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Dyn\-SGATransform$<$ EOT $>$} (Eo\-Dyn\-SGATransform: transforms a population using genetic operators )}{\pageref{classeo_dyn_s_g_a_transform}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Dyn\-Updater} (A base class to actually update an {\bf eo\-Updatable}{\rm (p.\,\pageref{classeo_updatable})} object )}{\pageref{classeo_dyn_updater}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Easy\-EA$<$ EOT $>$} (An easy-to-use evolutionary algorithm; you can use any chromosome, and any selection transformation, merging and evaluation algorithms; you can even change in runtime parameters of those sub-algorithms )}{\pageref{classeo_easy_e_a}}{}
|
||||
\item\contentsline{section}{{\bf eo\-EDA$<$ EOT $>$} (Eo\-EDA: Estimation of Distribution Algorithm within {\bf EO}{\rm (p.\,\pageref{class_e_o})} )}{\pageref{classeo_e_d_a}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Elite\-Sequential\-Select$<$ EOT $>$} (All Individuals in order )}{\pageref{classeo_elite_sequential_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Elitism$<$ EOT $>$} (Straightforward elitism class, specify the number of individuals to copy into new geneneration or the rate w.r.t )}{\pageref{classeo_elitism}}{}
|
||||
\item\contentsline{section}{{\bf EO$<$ F $>$} (EO is a base class for evolvable objects, that is, the subjects of evolution )}{\pageref{class_e_o}}{}
|
||||
\item\contentsline{section}{{\bf eo\-EPReduce$<$ EOT $>$} (EP truncation method (some global stochastic tournament + sort) Softer selective pressure than pure truncate )}{\pageref{classeo_e_p_reduce}}{}
|
||||
\item\contentsline{section}{{\bf eo\-EPReplacement$<$ EOT $>$} (EP type of replacement strategy: first add parents to population, then truncate using EP tournament )}{\pageref{classeo_e_p_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Chrom\-Init$<$ EOT $>$} (Random Es-chromosome initializer (therefore derived from {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})}) )}{\pageref{classeo_es_chrom_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Full$<$ Fit $>$} (The most complex evolutionary strategy representation )}{\pageref{classeo_es_full}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Global\-Xover$<$ EOT $>$} (Gloabl crossover operator for ES genotypes )}{\pageref{classeo_es_global_xover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Mutate$<$ EOT $>$} (ES-style mutation in the large )}{\pageref{classeo_es_mutate}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Mutation\-Init} (Initialize Mutation operator )}{\pageref{classeo_es_mutation_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Simple$<$ Fit $>$} (Simple Evolution Strategy )}{\pageref{classeo_es_simple}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Standard\-Xover$<$ EOT $>$} (Standard (i.e )}{\pageref{classeo_es_standard_xover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Es\-Stdev$<$ Fit $>$} (Evolutionary Strategy with a standard deviation per parameter )}{\pageref{classeo_es_stdev}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Eval\-Continue$<$ EOT $>$} (Continues until a number of evaluations has been made )}{\pageref{classeo_eval_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Eval\-Func$<$ EOT $>$} (Evaluate: takes one {\bf EO}{\rm (p.\,\pageref{class_e_o})} and sets its \char`\"{}fitness\char`\"{} property returning this fitness also )}{\pageref{classeo_eval_func}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Eval\-Func\-Counter$<$ EOT $>$} (Counts the number of evaluations actually performed, thus checks first if it has to evaluate. )}{\pageref{classeo_eval_func_counter}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Eval\-Func\-Ptr$<$ EOT, Fit\-T, Function\-Arg $>$} (EOEval\-Func\-Ptr: This class takes an existing function pointer and converts it into a evaluation function class )}{\pageref{structeo_eval_func_ptr}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Expansion\-Mutation$<$ FType, Node $>$} (Eo\-Expansion\-Mutation --$>$ replace a terminal with a randomly created subtree )}{\pageref{classeo_expansion_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-External\-Bin\-Op$<$ F, External, External\-EO $>$} (Crossover of external struct, ctor expects a function of the following signature: )}{\pageref{classeo_external_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-External\-EO$<$ Fit, External $>$} (Definition of an object that allows an external struct to be inserted in {\bf EO}{\rm (p.\,\pageref{class_e_o})} )}{\pageref{classeo_external_e_o}}{}
|
||||
\item\contentsline{section}{{\bf eo\-External\-Eval\-Func$<$ F, External, External\-EO $>$} (Evaluation of external struct, ctor expects a function of the following signature: )}{\pageref{classeo_external_eval_func}}{}
|
||||
\item\contentsline{section}{{\bf eo\-External\-Init$<$ F, External, External\-EO $>$} (Initialization of external struct, ctor expects a function of the following signature: )}{\pageref{classeo_external_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-External\-Mon\-Op$<$ F, External, External\-EO $>$} (Mutation of external struct, ctor expects a function of the following signature: )}{\pageref{classeo_external_mon_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-External\-Quad\-Op$<$ F, External, External\-EO $>$} (Crossover of external struct, ctor expects a function of the following signature: )}{\pageref{classeo_external_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-F$<$ R $>$} (Basic Function )}{\pageref{classeo_f}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Factory$<$ EOClass $>$} ({\bf EO}{\rm (p.\,\pageref{class_e_o})} Factory )}{\pageref{classeo_factory}}{}
|
||||
\item\contentsline{section}{{\bf eo\-FDCFile\-Snapshot$<$ EOT $>$} (Specific class for FDCStat monitoring: As I failed to have FDC stat as an {\bf eo\-Stat}{\rm (p.\,\pageref{classeo_stat})}, this is the trick to put the 2 {\bf eo\-Param}{\rm (p.\,\pageref{classeo_param})}$<$std::vector$<$double$>$ $>$ into a monitor This class does nothing else )}{\pageref{classeo_f_d_c_file_snapshot}}{}
|
||||
\item\contentsline{section}{{\bf eo\-FDCStat$<$ EOT $>$} (The FDC computation - stores the values into eo\-Value\-Param$<$EOT,double$>$ so they can be snapshot by some eo\-Gnuplot\-Snapshot .. )}{\pageref{classeo_f_d_c_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-File\-Monitor} (Prints statistics to file )}{\pageref{classeo_file_monitor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-File\-Snapshot} (Prints snapshots of fitnesses to a (new) file every N generations )}{\pageref{classeo_file_snapshot}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fit\-Continue$<$ EOT $>$} (Fitness continuation: )}{\pageref{classeo_fit_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fitness\-Scaling\-Select$<$ EOT $>$} (Eo\-Fitness\-Scaling\-Select: select an individual proportional to the linearly scaled fitness that is computed by the private {\bf eo\-Linear\-Fit\-Scaling}{\rm (p.\,\pageref{classeo_linear_fit_scaling})} object )}{\pageref{classeo_fitness_scaling_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fitness\-Stat$<$ EOT, Fit\-T $>$} (The fitnesses of a whole population, as a vector )}{\pageref{classeo_fitness_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or1pt\-Bin\-Op$<$ EOT $>$} (The 1pt crossover (just in case someone wants it some day!) )}{\pageref{classeo_fl_or1pt_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or1pt\-Quad\-Op$<$ EOT $>$} (The 1pt crossover (just in case someone wants it some day!) )}{\pageref{classeo_fl_or1pt_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-All\-Atom\-Bin\-Op$<$ EOT $>$} (Bin Crossover using an Atom Crossover that is applied to a ALL components with given rate )}{\pageref{classeo_fl_or_all_atom_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-All\-Atom\-Quad\-Op$<$ EOT $>$} (Quad Crossover using an Atom Crossover )}{\pageref{classeo_fl_or_all_atom_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-All\-Mutation$<$ EOT $>$} (Applies an atomic mutation to all the components with a given rate )}{\pageref{classeo_fl_or_all_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-KAtom\-Bin\-Op$<$ EOT $>$} (Bin Crossover using an Atom Crossover that is applied to a FIXED NB of components )}{\pageref{classeo_fl_or_k_atom_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-KAtom\-Quad\-Op$<$ EOT $>$} (Quad Crossover using an Atom Crossover that is applied to a FIXED NB of components )}{\pageref{classeo_fl_or_k_atom_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-KMutation$<$ EOT $>$} (Applies an atomic mutation to a fixed number of components (1 by default) )}{\pageref{classeo_fl_or_k_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-Uniform\-Bin\-Op$<$ EOT $>$} (The uniform crossover - exchanges atoms uniformly ! )}{\pageref{classeo_fl_or_uniform_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Fl\-Or\-Uniform\-Quad\-Op$<$ EOT $>$} (The uniform crossover - exchanges atoms uniformly ! )}{\pageref{classeo_fl_or_uniform_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Functor\-Base} (Base class for functors to get a nice hierarchy diagram )}{\pageref{classeo_functor_base}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Functor\-Base::binary\_\-function\_\-tag} (Tag to identify a binary function in compile time function selection functor\_\-category )}{\pageref{structeo_functor_base_1_1binary__function__tag}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Functor\-Base::procedure\_\-tag} (Tag to identify a procedure in compile time function selection functor\_\-category )}{\pageref{structeo_functor_base_1_1procedure__tag}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Functor\-Base::unary\_\-function\_\-tag} (Tag to identify a unary function in compile time function selection functor\_\-category )}{\pageref{structeo_functor_base_1_1unary__function__tag}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Functor\-Store} (Eo\-Functor\-Store is a class that stores functors that are allocated on the heap )}{\pageref{classeo_functor_store}}{}
|
||||
\item\contentsline{section}{{\bf eo\-G3Replacement$<$ EOT $>$} (Eo\-G3Replacement is an {\bf eo\-Replacement}{\rm (p.\,\pageref{classeo_replacement})}: - no strong elitism (is suppposed to be within a steady-state engine) - choose N (2) parents RANDOMLY - remove them from the parent population - merge offspring and the N removed parents - select best N of this merged population - put them back into parent population )}{\pageref{classeo_g3_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Gen\-Continue$<$ EOT $>$} (Generational continuator: continues until a number of generations is reached )}{\pageref{classeo_gen_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Gene\-Del\-Chooser$<$ EOT $>$} (A helper class for choosing which site to delete )}{\pageref{classeo_gene_del_chooser}}{}
|
||||
\item\contentsline{section}{{\bf eo\-General\-Breeder$<$ EOT $>$} (Base class for breeders using generalized operators )}{\pageref{classeo_general_breeder}}{}
|
||||
\item\contentsline{section}{{\bf eo\-General\-Int\-Bounds} (A class that encapsulate all possible {\bf eo\-Int\-Bounds}{\rm (p.\,\pageref{classeo_int_bounds})} )}{\pageref{classeo_general_int_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-General\-Real\-Bounds} (A class that encapsulate all possible {\bf eo\-Int\-Bounds}{\rm (p.\,\pageref{classeo_int_bounds})} )}{\pageref{classeo_general_real_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Generational\-Replacement$<$ EOT $>$} (Generational replacement == swap populations )}{\pageref{classeo_generational_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Gen\-Op$<$ EOT $>$} (The base class for General Operators Subclass this operator is you want to define an operator that falls outside of the {\bf eo\-Mon\-Op}{\rm (p.\,\pageref{classeo_mon_op})}, {\bf eo\-Bin\-Op}{\rm (p.\,\pageref{classeo_bin_op})}, {\bf eo\-Quad\-Op}{\rm (p.\,\pageref{classeo_quad_op})} classification )}{\pageref{classeo_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Gnuplot} (Base class for calls to gnuplot )}{\pageref{classeo_gnuplot}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Gnuplot1DMonitor} (Plot {\bf eo\-Stat}{\rm (p.\,\pageref{classeo_stat})} )}{\pageref{classeo_gnuplot1_d_monitor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Gnuplot1DSnapshot} (Plot stats through gnuplot )}{\pageref{classeo_gnuplot1_d_snapshot}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Hamming\-Distance$<$ EOT $>$} (This is a generic class for L1 distance computation: assumes the 2 things are std::vectors of something that is double-castable For bitstrings, this is the Hamming distance )}{\pageref{classeo_hamming_distance}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Hoist\-Mutation$<$ FType, Node $>$} (Eo\-Hoist\-Mutation --$>$ replace the individual with one of its subtree's )}{\pageref{classeo_hoist_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-How\-Many} (A helper class, to determine a number of individuals from another one Typically, is used in selection / replacement procedures, e.g )}{\pageref{classeo_how_many}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Incrementor$<$ T $>$} (Eo\-Updater that simply increments a counter )}{\pageref{classeo_incrementor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Incrementor\-Param$<$ T $>$} (Eo\-Updater that is an {\bf eo\-Value\-Param}{\rm (p.\,\pageref{classeo_value_param})} (and thus OWNS its counter) Mandatory for generation counter in make\_\-checkpoint )}{\pageref{classeo_incrementor_param}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init$<$ EOT $>$} (Base (name) class for Initialization of chromosomes, used in a population contructor )}{\pageref{classeo_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init\-Adaptor$<$ EOT $>$} (Eo\-Init\-Adaptor changes the place in the hierarchy from {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} to {\bf eo\-Mon\-Op}{\rm (p.\,\pageref{classeo_mon_op})} )}{\pageref{classeo_init_adaptor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init\-Fixed\-Length$<$ EOT $>$} (Initializer for fixed length representations with a single type )}{\pageref{classeo_init_fixed_length}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init\-Generator$<$ EOT $>$} (Turning an {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} into a generator probably we should only use genrators - and suppress {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} ??? MS - July 2001 )}{\pageref{classeo_init_generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init\-Variable\-Length$<$ EOT $>$} (Initializer for variable length representations with a single type )}{\pageref{classeo_init_variable_length}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init\-Virus$<$ Fit\-T $>$} (Initializer for binary chromosome with MGE )}{\pageref{classeo_init_virus}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Init\-Virus1bit$<$ Fit\-T $>$} (Inits the virus with one bit to the left set to one )}{\pageref{classeo_init_virus1bit}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Inner\-Exchange\-Quad\-Op$<$ EOT $>$} (Crossover using an Atom\-Crossover )}{\pageref{classeo_inner_exchange_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Int\-Above\-Bound} (An eo\-Int\-Bound bounded from above only )}{\pageref{classeo_int_above_bound}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Int\-Below\-Bound} (Eo\-Int\-Bound bounded from below only )}{\pageref{classeo_int_below_bound}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Int\-Bounds} (Defines bound classes for real numbers )}{\pageref{classeo_int_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Int\-Interval} (Fully bounded eo\-Int\-Bound == interval )}{\pageref{classeo_int_interval}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Int\-No\-Bounds} (A default class for unbounded variables )}{\pageref{classeo_int_no_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Invalidate\-Bin\-Op$<$ EOT $>$} (One of the invalidator operators )}{\pageref{classeo_invalidate_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Invalidate\-Mon\-Op$<$ EOT $>$} (One of the invalidator operators )}{\pageref{classeo_invalidate_mon_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Invalidate\-Quad\-Op$<$ EOT $>$} (One of the invalidator operators )}{\pageref{classeo_invalidate_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Linear\-Fit\-Scaling$<$ EOT $>$} (An instance of {\bf eo\-Perf2Worth}{\rm (p.\,\pageref{classeo_perf2_worth})} COmputes the linearly scaled fitnesses with given selective pressure Pselect(Best) == pressure/size\-Pop Pselect(average) == 1.0/size\-Pop truncate negative values to 0 - )}{\pageref{classeo_linear_fit_scaling}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Linear\-Random\-Split$<$ EOT $>$} (Random truncation - linear version )}{\pageref{classeo_linear_random_split}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Linear\-Truncate$<$ EOT $>$} (Truncate class that does not sort, but repeatidely kills the worse )}{\pageref{classeo_linear_truncate}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Linear\-Truncate\-Split$<$ EOT $>$} (Reduce\-Split class that does not sort, but repeatidely kills the worse )}{\pageref{classeo_linear_truncate_split}}{}
|
||||
\item\contentsline{section}{{\bf Mem\-Pool} (Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements) (c) copyright Maarten Keijzer 1999, 2000 )}{\pageref{class_mem_pool}}{}
|
||||
\item\contentsline{section}{{\bf gp\_\-parse\_\-tree::Mem\-Pool} (Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements) (c) copyright Maarten Keijzer 1999, 2000 )}{\pageref{classgp__parse__tree_1_1_mem_pool}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Merge$<$ Chrom $>$} (Eo\-Merge: Base class for elitist replacement algorithms )}{\pageref{classeo_merge}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Merge\-Reduce$<$ EOT $>$} (Eo\-Merge\-Reduce: abstract replacement strategy that is just an application of an embedded merge, followed by an embedded reduce )}{\pageref{classeo_merge_reduce}}{}
|
||||
\item\contentsline{section}{{\bf eo\-MGGReplacement$<$ EOT $>$} (Eo\-MGGReplacement is an {\bf eo\-Replacement}{\rm (p.\,\pageref{classeo_replacement})}: - choose N (2) parents RANDOMLY - remove them from the parent population - select best offspring, add to parents - merge (other?) offspring and the N removed parents - select best N-1 of this merged population (det\-Tournament only at the moment) - put them back into parent population )}{\pageref{classeo_m_g_g_replacement}}{}
|
||||
\item\contentsline{section}{{\bf Minimizing\-Traits} (Test program for Pareto Fitness )}{\pageref{class_minimizing_traits}}{}
|
||||
\item\contentsline{section}{{\bf eo\-MOFitness\-Stat$<$ EOT, Part\-Fit\-T $>$} (For multi-objective fitness, we need to translate a stat$<$vector$<$double$>$ $>$ into a vector$<$stat$>$, so each objective gets a seperate stat )}{\pageref{classeo_m_o_fitness_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Mon\-Clone\-Op$<$ EOT $>$} (Mon clone: one argument )}{\pageref{classeo_mon_clone_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Mon\-Gen\-Op$<$ EOT $>$} (Wrapper for {\bf eo\-Mon\-Op}{\rm (p.\,\pageref{classeo_mon_op})} )}{\pageref{classeo_mon_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Monitor} (The abstract monitor class is a std::vector of parameter pointers )}{\pageref{classeo_monitor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Mon\-Op$<$ EOType $>$} (Eo\-Mon\-Op is the monary operator: genetic operator that takes only one {\bf EO}{\rm (p.\,\pageref{class_e_o})} )}{\pageref{classeo_mon_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-NDPlus\-Replacement$<$ EOT, Worth\-T $>$} (An elitist non-dominated sorted replacement scheme )}{\pageref{classeo_n_d_plus_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-NDSorting$<$ EOT $>$} (Non dominated sorting, it $\ast$is a$\ast$ std::vector of doubles, the integer part is the rank (to which front it belongs), the fractional part the niching penalty or distance penalty or whatever penalty you want to squeeze into the bits )}{\pageref{classeo_n_d_sorting}}{}
|
||||
\item\contentsline{section}{{\bf eo\-NDSorting$<$ EOT $>$::Dummy\-EO} (Used in fast nondominated sorting {\bf Dummy\-EO}{\rm (p.\,\pageref{classeo_n_d_sorting_1_1_dummy_e_o})} is just a storage place for fitnesses and to store the original index )}{\pageref{classeo_n_d_sorting_1_1_dummy_e_o}}{}
|
||||
\item\contentsline{section}{{\bf eo\-NDSorting\_\-I$<$ EOT $>$} (The original Non Dominated Sorting algorithm from Srinivas and Deb )}{\pageref{classeo_n_d_sorting___i}}{}
|
||||
\item\contentsline{section}{{\bf eo\-NDSorting\_\-II$<$ EOT $>$} (Fast Elitist Non-Dominant Sorting Genetic Algorithm )}{\pageref{classeo_n_d_sorting___i_i}}{}
|
||||
\item\contentsline{section}{{\bf negexp\_\-generator$<$ T $>$} (The class negexp\_\-generator can be used in the STL generate function to easily generate negative exponential distributed floats and doubles )}{\pageref{classnegexp__generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Neg\-Exp\-Generator$<$ T $>$} (The class {\bf negexp\_\-generator}{\rm (p.\,\pageref{classnegexp__generator})} can be used in the STL generate function to easily generate negative exponential distributed floats and doubles )}{\pageref{classeo_neg_exp_generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Neg\-Exp\-Init$<$ T $>$} (The class {\bf negexp\_\-generator}{\rm (p.\,\pageref{classnegexp__generator})} can be used in the STL generate function to easily generate negative exponential distributed floats and doubles )}{\pageref{classeo_neg_exp_init}}{}
|
||||
\item\contentsline{section}{{\bf Node\-Selector} (Base class for selecting nodes )}{\pageref{class_node_selector}}{}
|
||||
\item\contentsline{section}{{\bf eo\-No\-Elitism$<$ EOT $>$} (No elite )}{\pageref{classeo_no_elitism}}{}
|
||||
\item\contentsline{section}{{\bf eo\-No\-Perf2Worth$<$ EOT $>$} (A dummy perf2worth, just in case you need it )}{\pageref{classeo_no_perf2_worth}}{}
|
||||
\item\contentsline{section}{{\bf normal\_\-generator$<$ T $>$} (The class normal\_\-generator can be used in the STL generate function to easily generate gaussian distributed floats and doubles )}{\pageref{classnormal__generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Normal\-Generator$<$ T $>$} (The class {\bf normal\_\-generator}{\rm (p.\,\pageref{classnormal__generator})} can be used in the STL generate function to easily generate gaussian distributed floats and doubles )}{\pageref{classeo_normal_generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Normal\-Init$<$ T $>$} (The class {\bf normal\_\-generator}{\rm (p.\,\pageref{classnormal__generator})} can be used in the STL generate function to easily generate gaussian distributed floats and doubles )}{\pageref{classeo_normal_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Normal\-Mutation$<$ EOT $>$} (Simple normal mutation of a std::vector of real values )}{\pageref{classeo_normal_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Normal\-Vec\-Mutation$<$ EOT $>$} (Simple normal mutation of a std::vector of real values )}{\pageref{classeo_normal_vec_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-No\-Select$<$ EOT $>$} (Eo\-No\-Select: returns all individual in order WITHOUT USING FITNESS!!! looping back to the beginning when exhasuted )}{\pageref{classeo_no_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-NPts\-Bit\-Xover$<$ Chrom $>$} (Eo\-NPts\-Bit\-Xover --$>$ n-point crossover )}{\pageref{classeo_n_pts_bit_xover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Nth\-Element\-Fitness\-Stat$<$ EOT $>$} (The n\_\-th element fitness in the population (see {\bf eo\-Best\-Fitness\-Stat}{\rm (p.\,\pageref{classeo_best_fitness_stat})}) )}{\pageref{classeo_nth_element_fitness_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Object} (Eo\-Object used to be the base class for the whole hierarchy, but this has changed )}{\pageref{classeo_object}}{}
|
||||
\item\contentsline{section}{{\bf eo\-One\-Fifth\-Mutation$<$ EOT $>$} (Dynamic version: just say it is updatable - and write the {\bf update()}{\rm (p.\,\pageref{classeo_one_fifth_mutation_a3})} method! here the 1 fifth rule: count the proportion of successful mutations, and increase sigma if more than threshold (1/5 !) )}{\pageref{classeo_one_fifth_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-One\-Max$<$ Fit\-T $>$} (Always write a comment in this format before class definition if you want the class to be documented by Doxygen )}{\pageref{classeo_one_max}}{}
|
||||
\item\contentsline{section}{{\bf eo\-One\-Max\-Eval\-Func$<$ EOT $>$} (Always write a comment in this format before class definition if you want the class to be documented by Doxygen )}{\pageref{classeo_one_max_eval_func}}{}
|
||||
\item\contentsline{section}{{\bf eo\-One\-Max\-Init$<$ Genotype\-T $>$} (Always write a comment in this format before class definition if you want the class to be documented by Doxygen )}{\pageref{classeo_one_max_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-One\-Max\-Mutation$<$ Genotype\-T $>$} (Always write a comment in this format before class definition if you want the class to be documented by Doxygen )}{\pageref{classeo_one_max_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-One\-Max\-Quad\-Crossover$<$ Genotype\-T $>$} (Always write a comment in this format before class definition if you want the class to be documented by Doxygen )}{\pageref{classeo_one_max_quad_crossover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Op$<$ EOType $>$} (Abstract data types for {\bf EO}{\rm (p.\,\pageref{class_e_o})} operators )}{\pageref{classeo_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Op\-Container$<$ EOT $>$} (Eo\-Op\-Container is a base class for the sequential and proportional selectors It takes care of wrapping the other operators, and deleting stuff that it has allocated )}{\pageref{classeo_op_container}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Op\-Sel\-Mason$<$ eo\-Class $>$} ({\bf EO}{\rm (p.\,\pageref{class_e_o})} Mason, or builder, for operator selectors )}{\pageref{classeo_op_sel_mason}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Param} (Eo\-Param: Base class for monitoring and parsing parameters )}{\pageref{classeo_param}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Parameter\-Loader} (Parameter saving and loading )}{\pageref{classeo_parameter_loader}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Param\-Param\-Type} (Another helper class for parsing parameters like Keyword(arg1, arg2, ...) )}{\pageref{classeo_param_param_type}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pareto\-Fitness$<$ Fitness\-Traits $>$} (Eo\-Pareto\-Fitness class: std::vector of doubles with overloaded comparison operators )}{\pageref{classeo_pareto_fitness}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pareto\-Fitness\-Traits} (Eo\-Fitness\-Traits: a traits class to specify the number of objectives and which one are maximizing or not See test/t-eo\-Pareto\-Fitness for its use )}{\pageref{classeo_pareto_fitness_traits}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pareto\-One\-Constraint\-Fitness$<$ Fitness\-Traits $>$} (Eo\-Pareto\-One\-Constraint\-Fitness class: std::vector of doubles + constraint value )}{\pageref{classeo_pareto_one_constraint_fitness}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pareto\-Ranking$<$ EOT $>$} (Straightforward pareto ranking )}{\pageref{classeo_pareto_ranking}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Parser} (Eo\-Parser: command line parser and configuration file reader This class is persistent, so it can be stored and reloaded to restore parameter settings )}{\pageref{classeo_parser}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Parse\-Tree$<$ FType, Node $>$} (Implementation of parse-tree for genetic programming )}{\pageref{classeo_parse_tree}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Parse\-Tree\-Depth\-Init$<$ FType, Node $>$} (Eo\-Parse\-Tree\-Depth\-Init : the initializer class for {\bf eo\-Parse\-Tree}{\rm (p.\,\pageref{classeo_parse_tree})} )}{\pageref{classeo_parse_tree_depth_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-PBILAdditive$<$ EOT $>$} (Distribution Class for PBIL algorithm (Population-Based Incremental Learning, Baluja and Caruana 96) )}{\pageref{classeo_p_b_i_l_additive}}{}
|
||||
\item\contentsline{section}{{\bf eo\-PBILDistrib$<$ EOT $>$} (Distribution Class for PBIL algorithm (Population-Based Incremental Learning, Baluja and Caruana 96) )}{\pageref{classeo_p_b_i_l_distrib}}{}
|
||||
\item\contentsline{section}{{\bf eo\-PBILOrg$<$ EOT $>$} (Distribution Class for PBIL algorithm (Population-Based Incremental Learning, Baluja and Caruana 95) )}{\pageref{classeo_p_b_i_l_org}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Perf2Worth$<$ EOT, Worth\-T $>$} (Base class to transform raw fitnesses into fitness for selection )}{\pageref{classeo_perf2_worth}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Perf2Worth$<$ EOT, Worth\-T $>$::compare\_\-worth} (Helper class used to sort indices into populations/worths )}{\pageref{classeo_perf2_worth_1_1compare__worth}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Perf2Worth\-Cached$<$ EOT, Worth\-T $>$} (Perf2Worth with fitness cache )}{\pageref{classeo_perf2_worth_cached}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Perf2Worth\-Cached$<$ EOT, Worth\-T $>$::compare\_\-worth} (Helper class used to sort indices into populations/worths )}{\pageref{classeo_perf2_worth_cached_1_1compare__worth}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Persistent} (An persistent object that knows how to write (through functions inherited from {\bf eo\-Printable}{\rm (p.\,\pageref{classeo_printable})}\#) and read itself )}{\pageref{classeo_persistent}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Plus$<$ EOT $>$} (Very elitist class, copies entire population into next gen )}{\pageref{classeo_plus}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Plus\-Replacement$<$ EOT $>$} (ES type of replacement strategy: first add parents to population, then truncate )}{\pageref{classeo_plus_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Point\-Mutation$<$ FType, Node $>$} (Eo\-Point\-Mutation --$>$ replace a Node with a Node of the same arity )}{\pageref{classeo_point_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop$<$ EOT $>$} (A std::vector of {\bf EO}{\rm (p.\,\pageref{class_e_o})} object, to be used in all algorithms (selectors, operators, replacements, ...) )}{\pageref{classeo_pop}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop$<$ EOT $>$::Cmp} (Helper struct for comparing on pointers )}{\pageref{structeo_pop_1_1_cmp}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop$<$ EOT $>$::Ref} (Helper struct for getting a pointer )}{\pageref{structeo_pop_1_1_ref}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop\-Algo$<$ EOT $>$} (For all \char`\"{}population transforming\char`\"{} algos .. )}{\pageref{classeo_pop_algo}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop\-Eval\-Func$<$ EOT $>$} (Eo\-Pop\-Eval\-Func: This abstract class is for GLOBAL evaluators of a population after variation )}{\pageref{classeo_pop_eval_func}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop\-Loop\-Eval$<$ EOT $>$} (Eo\-Pop\-Loop\-Eval: an instance of {\bf eo\-Pop\-Eval\-Func}{\rm (p.\,\pageref{classeo_pop_eval_func})} that simply applies a private {\bf eo\-Eval\-Func}{\rm (p.\,\pageref{classeo_eval_func})} to all offspring )}{\pageref{classeo_pop_loop_eval}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Pop\-Stat$<$ EOT $>$} (Thanks to MS/VC++, {\bf eo\-Param}{\rm (p.\,\pageref{classeo_param})} mechanism is unable to handle std::vectors of stats )}{\pageref{classeo_pop_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Populator$<$ EOT $>$} (Eo\-Populator is a helper class for general operators {\bf eo\-Gen\-Op}{\rm (p.\,\pageref{classeo_gen_op})} It is an {\bf eo\-Pop}{\rm (p.\,\pageref{classeo_pop})} but also behaves like an eo\-Pop::iterator as far as operator$\ast$ and operator++ are concerned )}{\pageref{classeo_populator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Printable} (Base class for objects that can print themselves ({\bf print\-On}{\rm (p.\,\pageref{classeo_printable_a1})}\#) )}{\pageref{classeo_printable}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Procedure\-Counter$<$ Procedure $>$} (Generic counter class that counts the number of times a procedure is used )}{\pageref{classeo_procedure_counter}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Prop\-Combined\-Bin\-Op$<$ EOT $>$} (COmbined Binary genetic operator: operator() has two operands, only the first one can be modified )}{\pageref{classeo_prop_combined_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Prop\-Combined\-Mon\-Op$<$ EOT $>$} (Eo\-Mon\-Op is the monary operator: genetic operator that takes only one {\bf EO}{\rm (p.\,\pageref{class_e_o})} )}{\pageref{classeo_prop_combined_mon_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Prop\-Combined\-Quad\-Op$<$ EOT $>$} (Combined quad genetic operator: operator() has two operands, both can be modified )}{\pageref{classeo_prop_combined_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Prop\-GAGen\-Op$<$ EOT $>$} ($\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$ eo\-Prop\-GAGen\-Op (for Simple GA, but Proportional) choice between Crossover, mutation or cloining with respect to given relatve weights )}{\pageref{classeo_prop_g_a_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Proportional\-Op$<$ EOT $>$} (The proportional versions: easy! )}{\pageref{classeo_proportional_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Proportional\-Select$<$ EOT $>$} (Eo\-Proportional\-Select: select an individual proportional to her stored fitness value )}{\pageref{classeo_proportional_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Quad2Bin\-Op$<$ EOT $>$} (Turning an {\bf eo\-Quad\-Op}{\rm (p.\,\pageref{classeo_quad_op})} into an {\bf eo\-Bin\-Op}{\rm (p.\,\pageref{classeo_bin_op})}: simply don't touch the second arg! )}{\pageref{classeo_quad2_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Quad\-Clone\-Op$<$ EOT $>$} (Quad clone: two operands, both could be modified - but are not! )}{\pageref{classeo_quad_clone_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Quad\-Distance$<$ EOT $>$} (This is a generic class for Euclidain distance (L2 norm) computation: assumes the 2 things are std::vectors of something that is double-castable )}{\pageref{classeo_quad_distance}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Quad\-Gen\-Op$<$ EOT $>$} (Wrapper for quadop: easy as pie )}{\pageref{classeo_quad_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Quad\-Op$<$ EOType $>$} (Quad genetic operator: subclasses {\bf eo\-Op}{\rm (p.\,\pageref{classeo_op})}, and defines basically the operator() with two operands, both can be modified )}{\pageref{classeo_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf random\_\-generator$<$ T $>$} (The class random\_\-generator can be used in the STL generate function to easily generate random ints either between [0, \_\-max) if only one value (\_\-max) is given to the ctor or in [\_\-min,\_\-max) if 2 values are given (\_\-min, \_\-max) )}{\pageref{classrandom__generator}}{}
|
||||
\item\contentsline{section}{{\bf Random\-Node\-Selector} (Select nodes uniformly )}{\pageref{class_random_node_selector}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Random\-Reduce$<$ EOT $>$} (Random truncation )}{\pageref{classeo_random_reduce}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Random\-Select$<$ EOT $>$} (Eo\-Random\-Select: a selection method that selects ONE individual randomly )}{\pageref{classeo_random_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Random\-Split$<$ EOT $>$} (Random truncation - batch version )}{\pageref{classeo_random_split}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Ranking$<$ EOT $>$} (An instance of eo\-Perf\-From\-Worth COmputes the ranked fitness: fitnesses range in [m,M] with m=2-pressure/pop\-Size and M=pressure/pop\-Size )}{\pageref{classeo_ranking}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Ranking\-Select$<$ EOT $>$} (Eo\-Ranking\-Select: select an individual by roulette wheel on its rank is an {\bf eo\-Roulette\-Worth\-Select}{\rm (p.\,\pageref{classeo_roulette_worth_select})}, i.e )}{\pageref{classeo_ranking_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real$<$ Fit\-T $>$} (Eo\-Real: implementation of simple real-valued chromosome )}{\pageref{classeo_real}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Above\-Bound} (An eo\-Real\-Bound bounded from above only )}{\pageref{classeo_real_above_bound}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Base\-Vector\-Bounds} (Vector type for bounds (see {\bf eo\-Real\-Bounds.h}{\rm (p.\,\pageref{eo_real_bounds_8h})} for scalar types) ------------ Class {\bf eo\-Real\-Vector\-Bounds}{\rm (p.\,\pageref{classeo_real_vector_bounds})} implements the std::vectorized version: it is basically a std::vector of {\bf eo\-Real\-Bounds}{\rm (p.\,\pageref{classeo_real_bounds})} $\ast$ and forwards all request to the elements of the std::vector )}{\pageref{classeo_real_base_vector_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Below\-Bound} (Eo\-Real\-Bound bounded from below only )}{\pageref{classeo_real_below_bound}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Bounds} (Defines bound classes for real numbers )}{\pageref{classeo_real_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Init\-Bounded$<$ EOT $>$} (Simple initialization for any EOT that derives from std::vector$<$double$>$ uniformly in some bounds )}{\pageref{classeo_real_init_bounded}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Interval} (Fully bounded eo\-Real\-Bound == interval )}{\pageref{classeo_real_interval}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-No\-Bounds} (A default class for unbounded variables )}{\pageref{classeo_real_no_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Ux\-Over} (Eo\-Real\-Ux\-Over --$>$ Uniform crossover, also termed intermediate crossover )}{\pageref{classeo_real_ux_over}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Vector\-Bounds} (Now a derived class, for parser reading It holds some of the bounds (and destroy them when dying) )}{\pageref{classeo_real_vector_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Real\-Vector\-No\-Bounds} ({\bf Dummy}{\rm (p.\,\pageref{struct_dummy})} unbounded {\bf eo\-Real\-Vector\-Bounds}{\rm (p.\,\pageref{classeo_real_vector_bounds})}: usefull if you don't need bounds! everything is inlined )}{\pageref{classeo_real_vector_no_bounds}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Reduce$<$ EOT $>$} (Eo\-Reduce: .reduce the new generation to the specified size At the moment, limited to truncation - with 2 different methods, one that sorts the whole population, and one that repeatidely kills the worst )}{\pageref{classeo_reduce}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Reduce\-Merge$<$ EOT $>$} (Eo\-Reduce\-Merge: Replacement strategies that start by reducing the parents, then merge with the offspring )}{\pageref{classeo_reduce_merge}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Reduce\-Merge\-Reduce$<$ EOT $>$} (Eo\-Reduce\-Merge\-Reduce is an {\bf eo\-Replacement}{\rm (p.\,\pageref{classeo_replacement})}: - saves possible elite parents - reduces rest of parents - reduces offspring - merges reduced populations - reduces resulting merged pop if necessary )}{\pageref{classeo_reduce_merge_reduce}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Reduce\-Split$<$ EOT $>$} (Eo\-Reduce\-Split: reduce the pop to the specified size AND eventually returns the eliminated guys )}{\pageref{classeo_reduce_split}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Replacement$<$ EOT $>$} }{\pageref{classeo_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Rnd\-Generator$<$ T $>$} (By popular demand re-introducing a base class for a family of random number generators )}{\pageref{classeo_rnd_generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Rng} (Random Number Generator )}{\pageref{classeo_rng}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Roulette\-Worth\-Select$<$ EOT, Worth\-T $>$} (An instance of eo\-Select\-Perf2Worth that does selection from the Worthes using a .. )}{\pageref{classeo_roulette_worth_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Scalar\-Fitness$<$ Scalar\-Type, Compare $>$} (Eo\-Scalar\-Fitness$<$Scalar\-Type, Compare = less$<$Scalar\-Type$>$ $>$: Wraps a scalar fitness values such as a double or int, with the option of maximizing (using less$<$Scalar\-Type$>$) or minimizing (using greater$<$Scalar\-Type$>$) )}{\pageref{classeo_scalar_fitness}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Scalar\-Fitness\-Assembled$<$ Scalar\-Type, Compare, Fitness\-Traits $>$} (Implements fitness as std::vector, storing all values that might occur during fitness assembly )}{\pageref{classeo_scalar_fitness_assembled}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Scalar\-Fitness\-Assembled\-Traits} (Defines properties of {\bf eo\-Scalar\-Fitness\-Assembled}{\rm (p.\,\pageref{classeo_scalar_fitness_assembled})} )}{\pageref{classeo_scalar_fitness_assembled_traits}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Scalar\-Fitness\-Stat$<$ EOT, Fit\-T $>$} (The fitnesses of a whole population, as a std::vector )}{\pageref{classeo_scalar_fitness_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Second\-Moment\-Stats$<$ EOT $>$} (Average fitness + Std )}{\pageref{classeo_second_moment_stats}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Segment\-Crossover$<$ EOT $>$} (Eo\-Segment\-Crossover --$>$ uniform choice in segment == arithmetical with same value along all coordinates )}{\pageref{classeo_segment_crossover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sel\-Bin\-Gen\-Op$<$ EOT $>$} (Wrapper for {\bf eo\-Bin\-Op}{\rm (p.\,\pageref{classeo_bin_op})} with a selector )}{\pageref{classeo_sel_bin_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select$<$ EOT $>$} (Eo\-Select selects a number of individuals from the first argument and puts it in the second )}{\pageref{classeo_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-Factory$<$ EOT $>$} ({\bf EO}{\rm (p.\,\pageref{class_e_o})} Factory.An instance of the factory class to create selectors, that is, {\bf eo\-Select}{\rm (p.\,\pageref{classeo_select})} objects )}{\pageref{classeo_select_factory}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-From\-Worth$<$ EOT, Worth\-Type $>$} (Selects one element from a population (is an {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})}) but the selection is based on a std::vector of Worth that is different from the fitnesses (e.g )}{\pageref{classeo_select_from_worth}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Selective\-Populator$<$ EOT $>$} (Selective\-Populator an eo\-Poplator that uses an {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} to select guys )}{\pageref{classeo_selective_populator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-Many$<$ EOT $>$} (Eo\-Select\-Many selects many individuals using {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} as it's mechanism )}{\pageref{classeo_select_many}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-Number$<$ EOT $>$} (Eo\-Select\-Number selects many individuals using {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} as it's mechanism )}{\pageref{classeo_select_number}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-One$<$ EOT, Worth\-T $>$} (Eo\-Select\-One selects only one element from a whole population )}{\pageref{classeo_select_one}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-Perc$<$ EOT $>$} (Eo\-Select\-Perc selects many individuals using {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} as it's mechanism )}{\pageref{classeo_select_perc}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Select\-Transform$<$ EOT $>$} (Embedded select, followed by an embedded transform )}{\pageref{classeo_select_transform}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Seq\-Populator$<$ EOT $>$} (Seq\-Populator: an {\bf eo\-Populator}{\rm (p.\,\pageref{classeo_populator})} that sequentially goes through the population is supposed to be used after a batch select of a whole bunch or genitors )}{\pageref{classeo_seq_populator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sequential\-Op$<$ EOT $>$} (Sequential selection: note the mark, rewind, unmark cycle here operators are repeatedly applied on the same individual(s) not all too elegant, but it sort of works.. )}{\pageref{classeo_sequential_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sequential\-Select$<$ EOT $>$} (All Individuals in order )}{\pageref{classeo_sequential_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-SGA$<$ EOT $>$} (The Simple Genetic Algorithm, following Holland and Goldberg )}{\pageref{classeo_s_g_a}}{}
|
||||
\item\contentsline{section}{{\bf eo\-SGAGen\-Op$<$ EOT $>$} ($\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$$\ast$ eo\-SGAGen\-Op (for Simple GA) mimicks the usual crossover with proba p\-Cross + mutation with proba p\-Mut inside an eo\-General\-Op It does it exactly as class {\bf eo\-SGATransform}{\rm (p.\,\pageref{classeo_s_g_a_transform})}, i.e )}{\pageref{classeo_s_g_a_gen_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-SGATransform$<$ EOT $>$} (Eo\-SGATransform: transforms a population using genetic operators )}{\pageref{classeo_s_g_a_transform}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sharing$<$ EOT $>$} (Sharing is a perf2worth class that implements Goldberg and Richardson's basic sharing see {\bf eo\-Sharing\-Select}{\rm (p.\,\pageref{classeo_sharing_select})} for how to use it and test/t-eo\-Sharing.cpp for a sample use of both )}{\pageref{classeo_sharing}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sharing\-Select$<$ EOT $>$} (Eo\-Sharing\-Select: select an individual by roulette wheel on its SHARED fitness )}{\pageref{classeo_sharing_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Simple\-EDA$<$ EOT $>$} (Eo\-Simple\-EDA: a very simple Estimation of Distribution Algorithm )}{\pageref{classeo_simple_e_d_a}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sorted\-Pop\-Stat$<$ EOT $>$} (Thanks to MS/VC++, {\bf eo\-Param}{\rm (p.\,\pageref{classeo_param})} mechanism is unable to handle std::vectors of stats )}{\pageref{classeo_sorted_pop_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sorted\-Stat$<$ EOT, Param\-Type $>$} (The actual class that will be used as base for all statistics that need to be calculated over the sorted population It's an {\bf eo\-Sorted\-Stat\-Base}{\rm (p.\,\pageref{classeo_sorted_stat_base})} AND an {\bf eo\-Value\-Param}{\rm (p.\,\pageref{classeo_value_param})} so it can be used in Monitors )}{\pageref{classeo_sorted_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sorted\-Stat\-Base$<$ EOT $>$} (Base class for statistics calculated over a sorted snapshot of the population )}{\pageref{classeo_sorted_stat_base}}{}
|
||||
\item\contentsline{section}{{\bf eo\-SSGADet\-Tournament\-Replacement$<$ EOT $>$} (SSGA deterministic tournament replacement )}{\pageref{classeo_s_s_g_a_det_tournament_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-SSGAStoch\-Tournament\-Replacement$<$ EOT $>$} (SSGA stochastic tournament replacement )}{\pageref{classeo_s_s_g_a_stoch_tournament_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-SSGAWorse\-Replacement$<$ EOT $>$} (SSGA replace worst )}{\pageref{classeo_s_s_g_a_worse_replacement}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stat$<$ EOT, T $>$} (The actual class that will be used as base for all statistics that need to be calculated over the (unsorted) population It is an {\bf eo\-Stat\-Base}{\rm (p.\,\pageref{classeo_stat_base})} AND an {\bf eo\-Value\-Param}{\rm (p.\,\pageref{classeo_value_param})} so it can be used in Monitors )}{\pageref{classeo_stat}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stat\-Base$<$ EOT $>$} (Base class for all statistics that need to be calculated over the (unsorted) population (I guess it is not really necessary? MS )}{\pageref{classeo_stat_base}}{}
|
||||
\item\contentsline{section}{{\bf eo\-State} (Eo\-State can be used to register derivants of {\bf eo\-Persistent}{\rm (p.\,\pageref{classeo_persistent})} )}{\pageref{classeo_state}}{}
|
||||
\item\contentsline{section}{{\bf eo\-State::loading\_\-error} (Loading error thrown when nothing seems to work )}{\pageref{structeo_state_1_1loading__error}}{}
|
||||
\item\contentsline{section}{{\bf eo\-St\-Branch\-Mutation$<$ FType, Node $>$} (Eo\-St\-Branch\-Mutation --$>$ replace a strongly typed subtree with a randomly created strongly typed subtree )}{\pageref{classeo_st_branch_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stdout\-Monitor} (Prints statistics to stdout )}{\pageref{classeo_stdout_monitor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Steady\-Fit\-Continue$<$ EOT $>$} (A continuator: does a minimum number of generations, then stops whenever a given number of generations takes place without improvement )}{\pageref{classeo_steady_fit_continue}}{}
|
||||
\item\contentsline{section}{{\bf eo\-St\-Hoist\-Mutation$<$ FType, Node $>$} (Eo\-St\-Hoist\-Mutation --$>$ replace the individual with one of its strongly typed subtree's )}{\pageref{classeo_st_hoist_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-STLBF$<$ A1, A2, R $>$} (Generic set of classes that wrap an {\bf eo\-F}{\rm (p.\,\pageref{classeo_f})}, {\bf eo\-UF}{\rm (p.\,\pageref{classeo_u_f})} or {\bf eo\-BF}{\rm (p.\,\pageref{classeo_b_f})} so that they have the copy semantics the STL functions usually require (i.e )}{\pageref{classeo_s_t_l_b_f}}{}
|
||||
\item\contentsline{section}{{\bf eo\-STLF$<$ R $>$} (Generic set of classes that wrap an {\bf eo\-F}{\rm (p.\,\pageref{classeo_f})}, {\bf eo\-UF}{\rm (p.\,\pageref{classeo_u_f})} or {\bf eo\-BF}{\rm (p.\,\pageref{classeo_b_f})} so that they have the copy semantics the STL functions usually require (i.e )}{\pageref{classeo_s_t_l_f}}{}
|
||||
\item\contentsline{section}{{\bf eo\-STLUF$<$ A1, R $>$} (Generic set of classes that wrap an {\bf eo\-F}{\rm (p.\,\pageref{classeo_f})}, {\bf eo\-UF}{\rm (p.\,\pageref{classeo_u_f})} or {\bf eo\-BF}{\rm (p.\,\pageref{classeo_b_f})} so that they have the copy semantics the STL functions usually require (i.e )}{\pageref{classeo_s_t_l_u_f}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stochastic\-Universal\-Select$<$ EOT $>$} (Eo\-Stochastic\-Universal\-Select: select an individual proportional to her stored fitness value, but in contrast with eo\-Stochastic\-Universal\-Select, get rid of most finite sampling effects by doing all selections in one go, using a single random number )}{\pageref{classeo_stochastic_universal_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stoch\-Tournament\-Select$<$ EOT $>$} (Eo\-Stoch\-Tournament\-Select: a selection method that selects ONE individual by binary stochastic tournament -MS- 24/10/99 )}{\pageref{classeo_stoch_tournament_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stoch\-Tournament\-Truncate$<$ EOT $>$} (Truncate class based on a repeated deterministic (reverse!) tournament To be used in SSGA-like replacements (e.g )}{\pageref{classeo_stoch_tournament_truncate}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stoch\-Tournament\-Truncate\-Split$<$ EOT $>$} (Reduce\-Split class based on a repeated deterministic (reverse!) tournament To be used in SSGA-like replacements (e.g )}{\pageref{classeo_stoch_tournament_truncate_split}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Stoch\-Tournament\-Worth\-Select$<$ EOT, Worth\-T $>$} (An instance of eo\-Select\-Perf2Worth that does selection from the Worthes using a .. )}{\pageref{classeo_stoch_tournament_worth_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-St\-Parse\-Tree\-Depth\-Init$<$ FType, Node $>$} (Eo\-St\-Parse\-Tree\-Depth\-Init : the initializer class for strongly typed tree-based genetic programming )}{\pageref{classeo_st_parse_tree_depth_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-St\-Point\-Mutation$<$ FType, Node $>$} (Eo\-St\-Point\-Mutation --$>$ replace a Node with a Node of the same arity and type )}{\pageref{classeo_st_point_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-String$<$ fitness\-T $>$} (Adaptor that turns an STL std::string into an {\bf EO}{\rm (p.\,\pageref{class_e_o})} )}{\pageref{classeo_string}}{}
|
||||
\item\contentsline{section}{{\bf eo\-St\-Subtree\-XOver$<$ FType, Node $>$} (Eo\-St\-Subtree\-XOver --$>$ subtree xover for strongly typed tree-based genetic programming )}{\pageref{classeo_st_subtree_x_over}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Subtree\-XOver$<$ FType, Node $>$} (Eo\-Subtree\-XOver --$>$ subtree xover )}{\pageref{classeo_subtree_x_over}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Survive\-And\-Die$<$ EOT $>$} (Eo\-Survive\-And\-Die A pure abstract class, to store the howmany's )}{\pageref{classeo_survive_and_die}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Sym\-Init$<$ Eo\-Type $>$} (Default initializer, Koza style )}{\pageref{classeo_sym_init}}{}
|
||||
\item\contentsline{section}{{\bf T\_\-pickle\_\-suite$<$ T $>$} (Implements pickle support for {\bf eo\-Persistent}{\rm (p.\,\pageref{classeo_persistent})} derivatives )}{\pageref{struct_t__pickle__suite}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Time\-Counter} (An {\bf eo\-Stat}{\rm (p.\,\pageref{classeo_stat})} that simply gives the user time since first generation It has to be tempatized by EOT because it must be an {\bf eo\-Stat}{\rm (p.\,\pageref{classeo_stat})} )}{\pageref{classeo_time_counter}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Timed\-Dyn\-Update} (An {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} to update an {\bf eo\-Updatable}{\rm (p.\,\pageref{classeo_updatable})} object every given time interval )}{\pageref{classeo_timed_dyn_update}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Timed\-Monitor} (Holds a collection of monitors and only fires them when a time limit has been reached )}{\pageref{classeo_timed_monitor}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Timed\-State\-Saver} (Eo\-Updater that saves a state every given time interval )}{\pageref{classeo_timed_state_saver}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Time\-Varying\-Loop\-Eval$<$ EOT $>$} (Eo\-Pop\-Loop\-Eval: an instance of {\bf eo\-Pop\-Eval\-Func}{\rm (p.\,\pageref{classeo_pop_eval_func})} that simply applies a private {\bf eo\-Eval\-Func}{\rm (p.\,\pageref{classeo_eval_func})} to all offspring AND ALL PARENTS as the fitness is supposed here to vary )}{\pageref{classeo_time_varying_loop_eval}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Transform$<$ EOT $>$} (Eo\-Transform transforms a population by applying genetic operators on it )}{\pageref{classeo_transform}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Truncate$<$ EOT $>$} (Truncation method using sort )}{\pageref{classeo_truncate}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Truncated\-Select\-Many$<$ EOT $>$} (Eo\-Truncated\-Select\-Many selects many individuals using {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} as it's mechanism )}{\pageref{classeo_truncated_select_many}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Truncated\-Select\-One$<$ EOT $>$} (Eo\-Truncated\-Select\-One selects one individual using {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} as it's mechanism )}{\pageref{classeo_truncated_select_one}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Truncate\-Split$<$ EOT $>$} (Deterministic truncation method using sort )}{\pageref{classeo_truncate_split}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Trunc\-Select$<$ EOT $>$} (Eo\-Trunc\-Select selects individuals after truncating the population using {\bf eo\-Select\-One}{\rm (p.\,\pageref{classeo_select_one})} as it's mechanism )}{\pageref{classeo_trunc_select}}{}
|
||||
\item\contentsline{section}{{\bf eo\-UBit\-Xover$<$ Chrom $>$} (Eo\-UBit\-Xover --$>$ classic Uniform crossover )}{\pageref{classeo_u_bit_xover}}{}
|
||||
\item\contentsline{section}{{\bf eo\-UF$<$ A1, R $>$} (Basic Unary Functor )}{\pageref{classeo_u_f}}{}
|
||||
\item\contentsline{section}{{\bf UF\_\-random\_\-generator$<$ T $>$} (Another class {\bf random\_\-generator}{\rm (p.\,\pageref{classrandom__generator})} that can be used in the STL random\_\-shuffle function (see {\bf eo\-Pop::shuffle}{\rm (p.\,\pageref{classeo_pop_a7})}): its operator() takes an unsigned argument m and must return an unsigned uniformly distributed in [0,m\} )}{\pageref{class_u_f__random__generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Unary\-Functor\-Counter$<$ Unary\-Functor $>$} (Generic counter class that counts the number of times a unary function is used )}{\pageref{classeo_unary_functor_counter}}{}
|
||||
\item\contentsline{section}{{\bf uniform\_\-generator$<$ T $>$} (The class uniform\_\-generator can be used in the STL generate function to easily generate random floats and doubles either in [0, \_\-max) if only 1 value (\_\-max) is given (or none, as \_\-max defaults to 1.0) or in [\_\-min,\_\-max) if 2 values are given (\_\-min, \_\-max) )}{\pageref{classuniform__generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Uniform\-Atom\-Exchange$<$ Atom $>$} (Uniform crossover - well, not really, efficient for Fixed\-Length )}{\pageref{classeo_uniform_atom_exchange}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Uniform\-Gene\-Chooser$<$ EOT $>$} (Uniform choice of gene to delete )}{\pageref{classeo_uniform_gene_chooser}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Uniform\-Generator$<$ T $>$} (The class eo\-Uniform can be used in the STL generate function to easily generate random floats and doubles )}{\pageref{classeo_uniform_generator}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Uniform\-Init$<$ T $>$} (The class eo\-Uniform\-Init can be used in the STL apply function to easily randomize floats and doubles )}{\pageref{classeo_uniform_init}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Uniform\-Mutation$<$ EOT $>$} (Eo\-Uniform\-Mutation --$>$ changes all values of the std::vector by uniform choice with range epsilon with probability p\_\-change per variable )}{\pageref{classeo_uniform_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Updatable} (Eo\-Updatable is a generic class for adding updatation to an existing class Just says it has an update() method )}{\pageref{classeo_updatable}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Updater} (Eo\-Updater is a generic procudere for updating whatever you want )}{\pageref{classeo_updater}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Value\-Param$<$ Value\-Type $>$} (Eo\-Value\-Param$<$Value\-Type$>$: templatized derivation of {\bf eo\-Param}{\rm (p.\,\pageref{classeo_param})} )}{\pageref{classeo_value_param}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Variable\-Pareto\-Traits} (Eo\-Variable\-Pareto\-Traits : an {\bf eo\-Pareto\-Fitness\-Traits}{\rm (p.\,\pageref{classeo_pareto_fitness_traits})} whose characteristics can be set at run-time (nb objectives and min/max's) Why bother? For didactical purposes (and EASEA implementation :-) )}{\pageref{classeo_variable_pareto_traits}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Vector$<$ Fit\-T, Gene\-Type $>$} (Base class for fixed length chromosomes, just derives from {\bf EO}{\rm (p.\,\pageref{class_e_o})} and std::vector and redirects the smaller than operator to EO (fitness based comparison) )}{\pageref{classeo_vector}}{}
|
||||
\item\contentsline{section}{{\bf Virus\-Bit\-Flip$<$ Fit\-T $>$} (Virus\-Bit\-Flip --$>$ changes 1 bit )}{\pageref{class_virus_bit_flip}}{}
|
||||
\item\contentsline{section}{{\bf Virus\-Shift\-Mutation$<$ Fit\-T $>$} (Works for 1-bit virus; shifts the one to the right or left )}{\pageref{class_virus_shift_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Vl\-Add\-Mutation$<$ EOT $>$} (Addition of a gene Is inserted at a random position - so can be applied to both order-dependent and order-independent )}{\pageref{classeo_vl_add_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Vl\-Atom\-Exchange\-Quad\-Op$<$ EOT $>$} (Exchange Crossover using an Atom\-Exchange )}{\pageref{classeo_vl_atom_exchange_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Vl\-Del\-Mutation$<$ EOT $>$} (Deletion of a gene By default at a random position, but a \char`\"{}chooser\char`\"{} can be specified can of course be applied to both order-dependent and order-independent )}{\pageref{classeo_vl_del_mutation}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Vl\-Uniform\-Bin\-Op$<$ EOT $>$} (Direct Uniform Exchange of genes for Variable Length, BINARY version )}{\pageref{classeo_vl_uniform_bin_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Vl\-Uniform\-Quad\-Op$<$ EOT $>$} (Direct Uniform Exchange of genes (obsolete, already :-) stays there for historical reasons )}{\pageref{classeo_vl_uniform_quad_op}}{}
|
||||
\item\contentsline{section}{{\bf eo\-Weak\-Elitist\-Replacement$<$ EOT $>$} (Eo\-Weak\-Elitist\-Replacement: a wrapper for other replacement procedures )}{\pageref{classeo_weak_elitist_replacement}}{}
|
||||
\end{CompactList}
|
||||
197
trunk/paradiseo-eo/doc/latex/class_biased_node_selector.eps
Normal file
197
trunk/paradiseo-eo/doc/latex/class_biased_node_selector.eps
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 296.296
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.6875 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 2 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(BiasedNodeSelector) cw
|
||||
(NodeSelector) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(BiasedNodeSelector) 0 0 box
|
||||
(NodeSelector) 0 1 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
41
trunk/paradiseo-eo/doc/latex/class_biased_node_selector.tex
Normal file
41
trunk/paradiseo-eo/doc/latex/class_biased_node_selector.tex
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
\section{Biased\-Node\-Selector Class Reference}
|
||||
\label{class_biased_node_selector}\index{BiasedNodeSelector@{BiasedNodeSelector}}
|
||||
A node selector that does a specified number of rounds ignoring terminals.
|
||||
|
||||
|
||||
{\tt \#include $<$Node\-Selector.h$>$}
|
||||
|
||||
Inheritance diagram for Biased\-Node\-Selector::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2cm]{class_biased_node_selector}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf Biased\-Node\-Selector} (unsigned n)\label{class_biased_node_selector_a1}
|
||||
|
||||
\item
|
||||
Node\-Selection {\bf select\_\-node} (Sym sym) const \label{class_biased_node_selector_a2}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf n\-Rounds}\label{class_biased_node_selector_o0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
A node selector that does a specified number of rounds ignoring terminals.
|
||||
|
||||
|
||||
|
||||
Definition at line 55 of file Node\-Selector.h.
|
||||
|
||||
The documentation for this class was generated from the following files:\begin{CompactItemize}
|
||||
\item
|
||||
Node\-Selector.h\item
|
||||
Node\-Selector.cpp\end{CompactItemize}
|
||||
49
trunk/paradiseo-eo/doc/latex/class_cov.tex
Normal file
49
trunk/paradiseo-eo/doc/latex/class_cov.tex
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
\section{Cov Class Reference}
|
||||
\label{class_cov}\index{Cov@{Cov}}
|
||||
Single covariance between two variates.
|
||||
|
||||
|
||||
{\tt \#include $<$stats.h$>$}
|
||||
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
void {\bf update} (double a, double b)\label{class_cov_a1}
|
||||
|
||||
\item
|
||||
double {\bf get\_\-meana} () const \label{class_cov_a2}
|
||||
|
||||
\item
|
||||
double {\bf get\_\-meanb} () const \label{class_cov_a3}
|
||||
|
||||
\item
|
||||
double {\bf get\_\-cov} () const \label{class_cov_a4}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
double {\bf n}\label{class_cov_r0}
|
||||
|
||||
\item
|
||||
double {\bf meana}\label{class_cov_r1}
|
||||
|
||||
\item
|
||||
double {\bf meanb}\label{class_cov_r2}
|
||||
|
||||
\item
|
||||
double {\bf sumcov}\label{class_cov_r3}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
Single covariance between two variates.
|
||||
|
||||
|
||||
|
||||
Definition at line 58 of file stats.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
stats.h\end{CompactItemize}
|
||||
209
trunk/paradiseo-eo/doc/latex/class_e_o.eps
Normal file
209
trunk/paradiseo-eo/doc/latex/class_e_o.eps
Normal file
|
|
@ -0,0 +1,209 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 337.079
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.48333 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 3 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(EO< F >) cw
|
||||
(eoObject) cw
|
||||
(eoPersistent) cw
|
||||
(eoPrintable) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(EO< F >) 0.5 0 box
|
||||
(eoObject) 0 1 box
|
||||
(eoPersistent) 1 1 box
|
||||
(eoPrintable) 1 2 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
0 1 1 conn
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
1 1 1 in
|
||||
solid
|
||||
0 1 1 out
|
||||
solid
|
||||
1 1 2 in
|
||||
244
trunk/paradiseo-eo/doc/latex/class_e_o.tex
Normal file
244
trunk/paradiseo-eo/doc/latex/class_e_o.tex
Normal file
|
|
@ -0,0 +1,244 @@
|
|||
\section{EO$<$ F $>$ Class Template Reference}
|
||||
\label{class_e_o}\index{EO@{EO}}
|
||||
EO is a base class for evolvable objects, that is, the subjects of evolution.
|
||||
|
||||
|
||||
{\tt \#include $<$EO.h$>$}
|
||||
|
||||
Inheritance diagram for EO$<$ F $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3cm]{class_e_o}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef F {\bf Fitness}\label{class_e_o_w0}
|
||||
|
||||
\item
|
||||
typedef Traits {\bf fitness\_\-traits}\label{class_e_o_w1}
|
||||
|
||||
\item
|
||||
typedef Traits::storage\_\-type {\bf storage\_\-type}\label{class_e_o_w2}
|
||||
|
||||
\item
|
||||
typedef Traits::performance\_\-type {\bf performance\_\-type}\label{class_e_o_w3}
|
||||
|
||||
\item
|
||||
typedef Traits::worth\_\-type {\bf worth\_\-type}\label{class_e_o_w4}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf EO} ()
|
||||
\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item
|
||||
virtual {\bf $\sim$EO} ()\label{class_e_o_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em Virtual dtor. \item\end{CompactList}\item
|
||||
Fitness {\bf fitness} () const \label{class_e_o_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em Return fitness value. \item\end{CompactList}\item
|
||||
void {\bf invalidate} ()\label{class_e_o_a3}
|
||||
|
||||
\item
|
||||
void {\bf fitness} (const Fitness \&\_\-fitness)
|
||||
\begin{CompactList}\small\item\em Set fitness. \item\end{CompactList}\item
|
||||
bool {\bf invalid} () const
|
||||
\begin{CompactList}\small\item\em Return true If fitness value is invalid, false otherwise. \item\end{CompactList}\item
|
||||
bool {\bf operator$<$} (const {\bf EO} \&\_\-eo2) const
|
||||
\begin{CompactList}\small\item\em Returns true if. \item\end{CompactList}\item
|
||||
bool {\bf operator$>$} (const {\bf EO} \&\_\-eo2) const \label{class_e_o_a7}
|
||||
|
||||
\item
|
||||
void {\bf fitness} (performance\_\-type perf)\label{class_e_o_a9}
|
||||
|
||||
\item
|
||||
void {\bf performance} (performance\_\-type perf)\label{class_e_o_a10}
|
||||
|
||||
\item
|
||||
performance\_\-type {\bf performance} (void) const \label{class_e_o_a11}
|
||||
|
||||
\item
|
||||
void {\bf worth} (worth\_\-type worth)\label{class_e_o_a12}
|
||||
|
||||
\item
|
||||
worth\_\-type {\bf worth} (void) const \label{class_e_o_a13}
|
||||
|
||||
\item
|
||||
worth\_\-type {\bf fitness} (void) const \label{class_e_o_a14}
|
||||
|
||||
\item
|
||||
void {\bf invalidate} (void)\label{class_e_o_a15}
|
||||
|
||||
\item
|
||||
void {\bf invalidate\_\-worth} (void)\label{class_e_o_a16}
|
||||
|
||||
\item
|
||||
bool {\bf operator$<$} (const EO$<$ Fitness, Traits $>$ \&other) const \label{class_e_o_a17}
|
||||
|
||||
\item
|
||||
bool {\bf operator$>$} (const EO$<$ Fitness, Traits $>$ \&other) const \label{class_e_o_a18}
|
||||
|
||||
\end{CompactItemize}
|
||||
{\bf }\par
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} () const
|
||||
\begin{CompactList}\small\item\em Return the class id. \item\end{CompactList}\item
|
||||
virtual void {\bf read\-From} (std::istream \&\_\-is)
|
||||
\begin{CompactList}\small\item\em Read object.$\backslash$ Calls base class, just in case that one had something to do. \item\end{CompactList}\item
|
||||
virtual void {\bf print\-On} (std::ostream \&\_\-os) const
|
||||
\begin{CompactList}\small\item\em Write object. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
Fitness {\bf rep\-Fitness}\label{class_e_o_r0}
|
||||
|
||||
\item
|
||||
bool {\bf invalid\-Fitness}\label{class_e_o_r1}
|
||||
|
||||
\item
|
||||
bool {\bf valid\_\-performance}\label{class_e_o_r2}
|
||||
|
||||
\item
|
||||
bool {\bf valid\_\-worth}\label{class_e_o_r3}
|
||||
|
||||
\item
|
||||
storage\_\-type {\bf rep\_\-fitness}\label{class_e_o_r4}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class F$>$ class EO$<$ F $>$}
|
||||
|
||||
EO is a base class for evolvable objects, that is, the subjects of evolution.
|
||||
|
||||
EOs have only got a fitness, which at the same time needs to be only an object with the operation less than ($<$) defined. Fitness says how good is the object; evolution or change of these objects is left to the genetic operators. A fitness less than another means a worse fitness, in whatever the context; thus, fitness is always maximized; although it can be minimized with a proper definition of the $<$ operator. The fitness object must have, besides an void ctor, a copy ctor.
|
||||
|
||||
|
||||
|
||||
Definition at line 44 of file EO.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{EO@{EO}!EO@{EO}}
|
||||
\index{EO@{EO}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ {\bf EO}$<$ F $>$::{\bf EO} ()\hspace{0.3cm}{\tt [inline]}}\label{class_e_o_a0}
|
||||
|
||||
|
||||
Default constructor.
|
||||
|
||||
Fitness must have a ctor which takes 0 as a value; we can not use void ctors here since default types like float have no void initializer. VC++ allows it, but gcc does not
|
||||
|
||||
Definition at line 54 of file EO.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{EO@{EO}!fitness@{fitness}}
|
||||
\index{fitness@{fitness}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ void {\bf EO}$<$ F $>$::fitness (const Fitness \& {\em \_\-fitness})\hspace{0.3cm}{\tt [inline]}}\label{class_e_o_a4}
|
||||
|
||||
|
||||
Set fitness.
|
||||
|
||||
At the same time, validates it. \begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-fitness}]New fitness value. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 72 of file EO.h.\index{EO@{EO}!invalid@{invalid}}
|
||||
\index{invalid@{invalid}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ bool {\bf EO}$<$ F $>$::invalid () const\hspace{0.3cm}{\tt [inline]}}\label{class_e_o_a5}
|
||||
|
||||
|
||||
Return true If fitness value is invalid, false otherwise.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Returns:]true If fitness is invalid. \end{Desc}
|
||||
|
||||
|
||||
Definition at line 81 of file EO.h.
|
||||
|
||||
Referenced by EO$<$ Py\-Fitness $>$::fitness(), eo\-One\-Max\-Eval\-Func$<$ EOT $>$::operator()(), eo\-One\-Fifth\-Mutation$<$ EOT $>$::operator()(), eo\-Eval\-Func\-Ptr$<$ EOT, Fit\-T, Function\-Arg $>$::operator()(), eo\-Eval\-Func\-Counter$<$ EOT $>$::operator()(), and EO$<$ Py\-Fitness $>$::print\-On().\index{EO@{EO}!operator<@{operator$<$}}
|
||||
\index{operator<@{operator$<$}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ bool {\bf EO}$<$ F $>$::operator$<$ (const {\bf EO}$<$ F $>$ \& {\em \_\-eo2}) const\hspace{0.3cm}{\tt [inline]}}\label{class_e_o_a6}
|
||||
|
||||
|
||||
Returns true if.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Returns:]true if the fitness is higher \end{Desc}
|
||||
|
||||
|
||||
Definition at line 86 of file EO.h.
|
||||
|
||||
Referenced by eo\-Vector$<$ Fit\-T, bool $>$::operator$<$().\index{EO@{EO}!className@{className}}
|
||||
\index{className@{className}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ virtual std::string {\bf EO}$<$ F $>$::class\-Name (void) const\hspace{0.3cm}{\tt [inline, virtual]}}\label{class_e_o_z10_0}
|
||||
|
||||
|
||||
Return the class id.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Returns:]the class name as a std::string \end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-Object} {\rm (p.\,\pageref{classeo_object_a1})}.
|
||||
|
||||
Reimplemented in {\bf eo\-Es\-Full$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_full_a1})}, {\bf eo\-Es\-Simple$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_simple_a1})}, {\bf eo\-Es\-Stdev$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_stdev_a1})}, {\bf eo\-Real$<$ Fit\-T $>$} {\rm (p.\,\pageref{classeo_real_a1})}, {\bf eo\-Bit$<$ Fit\-T $>$} {\rm (p.\,\pageref{classeo_bit_a1})}, {\bf eo\-Parse\-Tree$<$ FType, Node $>$} {\rm (p.\,\pageref{classeo_parse_tree_a4})}, {\bf eo\-String$<$ fitness\-T $>$} {\rm (p.\,\pageref{classeo_string_z26_0})}, and {\bf eo\-One\-Max$<$ Fit\-T $>$} {\rm (p.\,\pageref{classeo_one_max_a2})}.
|
||||
|
||||
Definition at line 95 of file EO.h.\index{EO@{EO}!readFrom@{readFrom}}
|
||||
\index{readFrom@{readFrom}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ virtual void {\bf EO}$<$ F $>$::read\-From (std::istream \& {\em \_\-is})\hspace{0.3cm}{\tt [inline, virtual]}}\label{class_e_o_z10_1}
|
||||
|
||||
|
||||
Read object.$\backslash$ Calls base class, just in case that one had something to do.
|
||||
|
||||
The read and print methods should be compatible and have the same format. In principle, format is \char`\"{}plain\char`\"{}: they just print a number \begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-is}]a std::istream. \end{description}
|
||||
\end{Desc}
|
||||
\begin{Desc}
|
||||
\item[Exceptions:]
|
||||
\begin{description}
|
||||
\item[{\em runtime\_\-std::exception}]If a valid object can't be read. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-Persistent} {\rm (p.\,\pageref{classeo_persistent_a1})}.
|
||||
|
||||
Reimplemented in {\bf eo\-Vector$<$ Fit\-T, Gene\-Type $>$} {\rm (p.\,\pageref{classeo_vector_a5})}, {\bf eo\-Es\-Full$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_full_a3})}, {\bf eo\-Es\-Simple$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_simple_a3})}, {\bf eo\-Es\-Stdev$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_stdev_a3})}, {\bf eo\-Bit$<$ Fit\-T $>$} {\rm (p.\,\pageref{classeo_bit_a3})}, {\bf eo\-Parse\-Tree$<$ FType, Node $>$} {\rm (p.\,\pageref{classeo_parse_tree_a6})}, {\bf eo\-External\-EO$<$ Fit, External $>$} {\rm (p.\,\pageref{classeo_external_e_o_a3})}, {\bf eo\-Vector$<$ Fit, double $>$} {\rm (p.\,\pageref{classeo_vector_a5})}, {\bf eo\-Vector$<$ Fit\-T, double $>$} {\rm (p.\,\pageref{classeo_vector_a5})}, and {\bf eo\-Vector$<$ Fit\-T, bool $>$} {\rm (p.\,\pageref{classeo_vector_a5})}.
|
||||
|
||||
Definition at line 105 of file EO.h.
|
||||
|
||||
Referenced by eo\-Vector$<$ Fit\-T, bool $>$::read\-From(), eo\-Pop$<$ Dummy $>$::read\-From(), eo\-Parse\-Tree$<$ FType, Node $>$::read\-From(), eo\-One\-Max$<$ Fit\-T $>$::read\-From(), eo\-External\-EO$<$ Fit, External $>$::read\-From(), and eo\-Bit$<$ Fit\-T $>$::read\-From().\index{EO@{EO}!printOn@{printOn}}
|
||||
\index{printOn@{printOn}!EO@{EO}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class F$>$ virtual void {\bf EO}$<$ F $>$::print\-On (std::ostream \& {\em \_\-os}) const\hspace{0.3cm}{\tt [inline, virtual]}}\label{class_e_o_z10_2}
|
||||
|
||||
|
||||
Write object.
|
||||
|
||||
Called print\-On since it prints the object \_\-on\_\- a stream. \begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-os}]A std::ostream. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-Printable} {\rm (p.\,\pageref{classeo_printable_a1})}.
|
||||
|
||||
Reimplemented in {\bf eo\-Vector$<$ Fit\-T, Gene\-Type $>$} {\rm (p.\,\pageref{classeo_vector_a4})}, {\bf eo\-Es\-Full$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_full_a2})}, {\bf eo\-Es\-Simple$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_simple_a2})}, {\bf eo\-Es\-Stdev$<$ Fit $>$} {\rm (p.\,\pageref{classeo_es_stdev_a2})}, {\bf eo\-Bit$<$ Fit\-T $>$} {\rm (p.\,\pageref{classeo_bit_a2})}, {\bf eo\-Parse\-Tree$<$ FType, Node $>$} {\rm (p.\,\pageref{classeo_parse_tree_a5})}, {\bf eo\-External\-EO$<$ Fit, External $>$} {\rm (p.\,\pageref{classeo_external_e_o_a4})}, {\bf eo\-String$<$ fitness\-T $>$} {\rm (p.\,\pageref{classeo_string_z24_1})}, {\bf Dummy} {\rm (p.\,\pageref{struct_dummy_a1})}, {\bf Dummy} {\rm (p.\,\pageref{struct_dummy_a2})}, {\bf Dummy} {\rm (p.\,\pageref{struct_dummy_a3})}, {\bf Dummy} {\rm (p.\,\pageref{struct_dummy_a4})}, {\bf eo\-Vector$<$ Fit, double $>$} {\rm (p.\,\pageref{classeo_vector_a4})}, {\bf eo\-Vector$<$ Fit\-T, double $>$} {\rm (p.\,\pageref{classeo_vector_a4})}, and {\bf eo\-Vector$<$ Fit\-T, bool $>$} {\rm (p.\,\pageref{classeo_vector_a4})}.
|
||||
|
||||
Definition at line 129 of file EO.h.
|
||||
|
||||
Referenced by Dummy::print\-On(), eo\-Vector$<$ Fit\-T, bool $>$::print\-On(), eo\-String$<$ fitness\-T $>$::print\-On(), eo\-Parse\-Tree$<$ FType, Node $>$::print\-On(), eo\-One\-Max$<$ Fit\-T $>$::print\-On(), eo\-External\-EO$<$ Fit, External $>$::print\-On(), and eo\-Bit$<$ Fit\-T $>$::print\-On().
|
||||
|
||||
The documentation for this class was generated from the following files:\begin{CompactItemize}
|
||||
\item
|
||||
EO.h\item
|
||||
fitness\_\-traits.cpp\end{CompactItemize}
|
||||
53
trunk/paradiseo-eo/doc/latex/class_mem_pool.tex
Normal file
53
trunk/paradiseo-eo/doc/latex/class_mem_pool.tex
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
\section{Mem\-Pool Class Reference}
|
||||
\label{class_mem_pool}\index{MemPool@{MemPool}}
|
||||
Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements) (c) copyright Maarten Keijzer 1999, 2000.
|
||||
|
||||
|
||||
{\tt \#include $<$node\_\-pool.h$>$}
|
||||
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf Mem\-Pool} (unsigned int sz)\label{class_mem_pool_a0}
|
||||
|
||||
\item
|
||||
void $\ast$ {\bf allocate} ()\label{class_mem_pool_a2}
|
||||
|
||||
\item
|
||||
void {\bf deallocate} (void $\ast$b)\label{class_mem_pool_a3}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
void {\bf grow} ()\label{class_mem_pool_d0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
Chunk $\ast$ {\bf chunks}\label{class_mem_pool_r0}
|
||||
|
||||
\item
|
||||
const unsigned int {\bf esize}\label{class_mem_pool_r1}
|
||||
|
||||
\item
|
||||
Link $\ast$ {\bf head}\label{class_mem_pool_r2}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements) (c) copyright Maarten Keijzer 1999, 2000.
|
||||
|
||||
Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided \char`\"{}as is\char`\"{} without express or implied warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
Permission to modify the code and to distribute modified code is granted, provided the above notices are retained, and a notice that the code was modified is included with the above copyright notice.
|
||||
|
||||
|
||||
|
||||
Definition at line 21 of file node\_\-pool.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
node\_\-pool.h\end{CompactItemize}
|
||||
197
trunk/paradiseo-eo/doc/latex/class_minimizing_traits.eps
Normal file
197
trunk/paradiseo-eo/doc/latex/class_minimizing_traits.eps
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 281.69
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.775 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 2 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(MinimizingTraits) cw
|
||||
(eoParetoFitnessTraits) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(MinimizingTraits) 0 0 box
|
||||
(eoParetoFitnessTraits) 0 1 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
29
trunk/paradiseo-eo/doc/latex/class_minimizing_traits.tex
Normal file
29
trunk/paradiseo-eo/doc/latex/class_minimizing_traits.tex
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
\section{Minimizing\-Traits Class Reference}
|
||||
\label{class_minimizing_traits}\index{MinimizingTraits@{MinimizingTraits}}
|
||||
test program for Pareto Fitness
|
||||
|
||||
|
||||
Inheritance diagram for Minimizing\-Traits::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2cm]{class_minimizing_traits}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Static Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
bool {\bf maximizing} (int)\label{class_minimizing_traits_e0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
test program for Pareto Fitness
|
||||
|
||||
|
||||
|
||||
Definition at line 36 of file t-eo\-Pareto\-Fitness.cpp.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
t-eo\-Pareto\-Fitness.cpp\end{CompactItemize}
|
||||
203
trunk/paradiseo-eo/doc/latex/class_node_selector.eps
Normal file
203
trunk/paradiseo-eo/doc/latex/class_node_selector.eps
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 140.845
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.55 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 2 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(NodeSelector) cw
|
||||
(BiasedNodeSelector) cw
|
||||
(RandomNodeSelector) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(NodeSelector) 0.5 1 box
|
||||
(BiasedNodeSelector) 0 0 box
|
||||
(RandomNodeSelector) 1 0 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
1 0.5 0.25 out
|
||||
solid
|
||||
0 1 1 conn
|
||||
solid
|
||||
0 0 0.75 in
|
||||
solid
|
||||
0 1 0.75 in
|
||||
31
trunk/paradiseo-eo/doc/latex/class_node_selector.tex
Normal file
31
trunk/paradiseo-eo/doc/latex/class_node_selector.tex
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
\section{Node\-Selector Class Reference}
|
||||
\label{class_node_selector}\index{NodeSelector@{NodeSelector}}
|
||||
Base class for selecting nodes.
|
||||
|
||||
|
||||
{\tt \#include $<$Node\-Selector.h$>$}
|
||||
|
||||
Inheritance diagram for Node\-Selector::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2cm]{class_node_selector}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual Node\-Selection {\bf select\_\-node} (Sym sym) const =0\label{class_node_selector_a1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
Base class for selecting nodes.
|
||||
|
||||
|
||||
|
||||
Definition at line 24 of file Node\-Selector.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
Node\-Selector.h\end{CompactItemize}
|
||||
197
trunk/paradiseo-eo/doc/latex/class_random_node_selector.eps
Normal file
197
trunk/paradiseo-eo/doc/latex/class_random_node_selector.eps
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 281.69
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.775 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 2 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(RandomNodeSelector) cw
|
||||
(NodeSelector) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(RandomNodeSelector) 0 0 box
|
||||
(NodeSelector) 0 1 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
32
trunk/paradiseo-eo/doc/latex/class_random_node_selector.tex
Normal file
32
trunk/paradiseo-eo/doc/latex/class_random_node_selector.tex
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
\section{Random\-Node\-Selector Class Reference}
|
||||
\label{class_random_node_selector}\index{RandomNodeSelector@{RandomNodeSelector}}
|
||||
Select nodes uniformly.
|
||||
|
||||
|
||||
{\tt \#include $<$Node\-Selector.h$>$}
|
||||
|
||||
Inheritance diagram for Random\-Node\-Selector::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2cm]{class_random_node_selector}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
Node\-Selection {\bf select\_\-node} (Sym sym) const \label{class_random_node_selector_a0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
Select nodes uniformly.
|
||||
|
||||
|
||||
|
||||
Definition at line 49 of file Node\-Selector.h.
|
||||
|
||||
The documentation for this class was generated from the following files:\begin{CompactItemize}
|
||||
\item
|
||||
Node\-Selector.h\item
|
||||
Node\-Selector.cpp\end{CompactItemize}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
\section{UF\_\-random\_\-generator$<$ T $>$ Class Template Reference}
|
||||
\label{class_u_f__random__generator}\index{UF_random_generator@{UF\_\-random\_\-generator}}
|
||||
Another class {\bf random\_\-generator}{\rm (p.\,\pageref{classrandom__generator})} that can be used in the STL random\_\-shuffle function (see {\bf eo\-Pop::shuffle}{\rm (p.\,\pageref{classeo_pop_a7})}): its operator() takes an unsigned argument m and must return an unsigned uniformly distributed in [0,m\}.
|
||||
|
||||
|
||||
{\tt \#include $<$rnd\_\-generators.h$>$}
|
||||
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf UF\_\-random\_\-generator} ({\bf eo\-Rng} \&\_\-rng=rng)\label{class_u_f__random__generator_a0}
|
||||
|
||||
\item
|
||||
T {\bf operator()} (T \_\-t)\label{class_u_f__random__generator_a1}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Rng} \& {\bf random}\label{class_u_f__random__generator_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class T = uint32\_\-t$>$ class UF\_\-random\_\-generator$<$ T $>$}
|
||||
|
||||
Another class {\bf random\_\-generator}{\rm (p.\,\pageref{classrandom__generator})} that can be used in the STL random\_\-shuffle function (see {\bf eo\-Pop::shuffle}{\rm (p.\,\pageref{classeo_pop_a7})}): its operator() takes an unsigned argument m and must return an unsigned uniformly distributed in [0,m\}.
|
||||
|
||||
|
||||
|
||||
Definition at line 121 of file rnd\_\-generators.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
rnd\_\-generators.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/class_virus_bit_flip.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/class_virus_bit_flip.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 100.629
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.96875 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(VirusBitFlip< FitT >) cw
|
||||
(eoMonOp< eoVirus< FitT > >) cw
|
||||
(eoOp< eoVirus< FitT > >) cw
|
||||
(eoUF< eoVirus< FitT > &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoVirus< FitT > &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(VirusBitFlip< FitT >) 0.5 0 box
|
||||
(eoMonOp< eoVirus< FitT > >) 0.5 1 box
|
||||
(eoOp< eoVirus< FitT > >) 0 2 box
|
||||
(eoUF< eoVirus< FitT > &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< eoVirus< FitT > &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
54
trunk/paradiseo-eo/doc/latex/class_virus_bit_flip.tex
Normal file
54
trunk/paradiseo-eo/doc/latex/class_virus_bit_flip.tex
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
\section{Virus\-Bit\-Flip$<$ Fit\-T $>$ Class Template Reference}
|
||||
\label{class_virus_bit_flip}\index{VirusBitFlip@{VirusBitFlip}}
|
||||
Virus\-Bit\-Flip --$>$ changes 1 bit.
|
||||
|
||||
|
||||
{\tt \#include $<$Virus\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for Virus\-Bit\-Flip$<$ Fit\-T $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.81761cm]{class_virus_bit_flip}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} () const \label{class_virus_bit_flip_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (eo\-Virus$<$ {\bf Fit\-T} $>$ \&\_\-chrom)
|
||||
\begin{CompactList}\small\item\em Change one bit. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Fit\-T$>$ class Virus\-Bit\-Flip$<$ Fit\-T $>$}
|
||||
|
||||
Virus\-Bit\-Flip --$>$ changes 1 bit.
|
||||
|
||||
|
||||
|
||||
Definition at line 40 of file Virus\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{VirusBitFlip@{Virus\-Bit\-Flip}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!VirusBitFlip@{Virus\-Bit\-Flip}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Fit\-T$>$ bool {\bf Virus\-Bit\-Flip}$<$ {\bf Fit\-T} $>$::operator() (eo\-Virus$<$ {\bf Fit\-T} $>$ \& {\em \_\-chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{class_virus_bit_flip_a1}
|
||||
|
||||
|
||||
Change one bit.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The cromosome which one bit is going to be changed. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ eo\-Virus$<$ Fit\-T $>$ \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 49 of file Virus\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
Virus\-Op.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/class_virus_shift_mutation.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/class_virus_shift_mutation.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 100.629
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.96875 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(VirusShiftMutation< FitT >) cw
|
||||
(eoMonOp< eoVirus< FitT > >) cw
|
||||
(eoOp< eoVirus< FitT > >) cw
|
||||
(eoUF< eoVirus< FitT > &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoVirus< FitT > &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(VirusShiftMutation< FitT >) 0.5 0 box
|
||||
(eoMonOp< eoVirus< FitT > >) 0.5 1 box
|
||||
(eoOp< eoVirus< FitT > >) 0 2 box
|
||||
(eoUF< eoVirus< FitT > &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< eoVirus< FitT > &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
57
trunk/paradiseo-eo/doc/latex/class_virus_shift_mutation.tex
Normal file
57
trunk/paradiseo-eo/doc/latex/class_virus_shift_mutation.tex
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
\section{Virus\-Shift\-Mutation$<$ Fit\-T $>$ Class Template Reference}
|
||||
\label{class_virus_shift_mutation}\index{VirusShiftMutation@{VirusShiftMutation}}
|
||||
Works for 1-bit virus; shifts the one to the right or left.
|
||||
|
||||
|
||||
{\tt \#include $<$Virus\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for Virus\-Shift\-Mutation$<$ Fit\-T $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.81761cm]{class_virus_shift_mutation}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf Virus\-Shift\-Mutation} ()\label{class_virus_shift_mutation_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{class_virus_shift_mutation_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (eo\-Virus$<$ {\bf Fit\-T} $>$ \&\_\-chrom)
|
||||
\begin{CompactList}\small\item\em Change one bit. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Fit\-T$>$ class Virus\-Shift\-Mutation$<$ Fit\-T $>$}
|
||||
|
||||
Works for 1-bit virus; shifts the one to the right or left.
|
||||
|
||||
|
||||
|
||||
Definition at line 86 of file Virus\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{VirusShiftMutation@{Virus\-Shift\-Mutation}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!VirusShiftMutation@{Virus\-Shift\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Fit\-T$>$ bool {\bf Virus\-Shift\-Mutation}$<$ {\bf Fit\-T} $>$::operator() (eo\-Virus$<$ {\bf Fit\-T} $>$ \& {\em \_\-chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{class_virus_shift_mutation_a2}
|
||||
|
||||
|
||||
Change one bit.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The cromosome which one bit is going to be changed. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ eo\-Virus$<$ Fit\-T $>$ \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 99 of file Virus\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
Virus\-Op.h\end{CompactItemize}
|
||||
37
trunk/paradiseo-eo/doc/latex/classboolean__generator.tex
Normal file
37
trunk/paradiseo-eo/doc/latex/classboolean__generator.tex
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
\section{boolean\_\-generator Class Reference}
|
||||
\label{classboolean__generator}\index{boolean_generator@{boolean\_\-generator}}
|
||||
The class boolean\_\-generator can be used in the STL generate function to easily generate random booleans with a specified bias.
|
||||
|
||||
|
||||
{\tt \#include $<$rnd\_\-generators.h$>$}
|
||||
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf boolean\_\-generator} (float \_\-bias=0.5, {\bf eo\-Rng} \&\_\-rng=rng)\label{classboolean__generator_a0}
|
||||
|
||||
\item
|
||||
bool {\bf operator()} (void)\label{classboolean__generator_a1}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
float {\bf bias}\label{classboolean__generator_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Rng} \& {\bf gen}\label{classboolean__generator_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
The class boolean\_\-generator can be used in the STL generate function to easily generate random booleans with a specified bias.
|
||||
|
||||
|
||||
|
||||
Definition at line 70 of file rnd\_\-generators.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
rnd\_\-generators.h\end{CompactItemize}
|
||||
40
trunk/paradiseo-eo/doc/latex/classd_matrix.tex
Normal file
40
trunk/paradiseo-eo/doc/latex/classd_matrix.tex
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
\section{d\-Matrix Class Reference}
|
||||
\label{classd_matrix}\index{dMatrix@{dMatrix}}
|
||||
A helper class for Sharing - to hold distances.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Sharing.h$>$}
|
||||
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf d\-Matrix} (unsigned \_\-s)\label{classd_matrix_a0}
|
||||
|
||||
\item
|
||||
double {\bf operator()} (unsigned \_\-i, unsigned \_\-j) const \label{classd_matrix_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em simple accessor \item\end{CompactList}\item
|
||||
double \& {\bf operator()} (unsigned \_\-i, unsigned \_\-j)\label{classd_matrix_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em reference - to set values \item\end{CompactList}\item
|
||||
void {\bf print\-On} (std::ostream \&\_\-os)\label{classd_matrix_a3}
|
||||
|
||||
\begin{CompactList}\small\item\em just in case \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf r\-Size}\label{classd_matrix_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
A helper class for Sharing - to hold distances.
|
||||
|
||||
|
||||
|
||||
Definition at line 37 of file eo\-Sharing.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Sharing.h\end{CompactItemize}
|
||||
17
trunk/paradiseo-eo/doc/latex/classeo1_pt_bit_crossover.tex
Normal file
17
trunk/paradiseo-eo/doc/latex/classeo1_pt_bit_crossover.tex
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
\section{eo1Pt\-Bit\-Crossover Class Reference}
|
||||
\label{classeo1_pt_bit_crossover}\index{eo1PtBitCrossover@{eo1PtBitCrossover}}
|
||||
eo1Pt\-Bit\-Xover --$>$ classic 1-point crossover
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
eo1Pt\-Bit\-Xover --$>$ classic 1-point crossover
|
||||
|
||||
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
121
trunk/paradiseo-eo/doc/latex/classeo_aged.tex
Normal file
121
trunk/paradiseo-eo/doc/latex/classeo_aged.tex
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
\section{eo\-Aged$<$ Object $>$ Class Template Reference}
|
||||
\label{classeo_aged}\index{eoAged@{eoAged}}
|
||||
eo\-Age is a template class that adds an age to an object.$\backslash$ Requisites for template instantiation are that the object must admit a default ctor and a copy ctor.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Aged.h$>$}
|
||||
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Aged} (const Object \&\_\-o)\label{classeo_aged_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Main ctor from an already built Object. \item\end{CompactList}\item
|
||||
{\bf eo\-Aged} (const {\bf eo\-Aged} \&\_\-a)\label{classeo_aged_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em Copy constructor. \item\end{CompactList}\item
|
||||
virtual {\bf $\sim$eo\-Aged} ()\label{classeo_aged_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em Virtual dtor. They are needed in virtual class hierarchies. \item\end{CompactList}\item
|
||||
unsigned long {\bf Age} () const \label{classeo_aged_a3}
|
||||
|
||||
\begin{CompactList}\small\item\em returns the age of the object \item\end{CompactList}\item
|
||||
const {\bf eo\-Aged} \& {\bf operator++} ()\label{classeo_aged_a4}
|
||||
|
||||
\begin{CompactList}\small\item\em Increments age. \item\end{CompactList}\end{CompactItemize}
|
||||
\begin{Indent}{\bf Methods from eo\-Object}\par
|
||||
{\em read\-From and print\-On are directly inherited from eo1d }\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} () const
|
||||
\begin{CompactList}\small\item\em Return the class id. \item\end{CompactList}\item
|
||||
virtual void {\bf read\-From} (istream \&\_\-is)
|
||||
\begin{CompactList}\small\item\em Read object. \item\end{CompactList}\item
|
||||
virtual void {\bf print\-On} (ostream \&\_\-os) const
|
||||
\begin{CompactList}\small\item\em Write object. \item\end{CompactList}\end{CompactItemize}
|
||||
\end{Indent}
|
||||
\subsection*{Private Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Aged} ()
|
||||
\begin{CompactList}\small\item\em Default Constructor. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned long {\bf age}\label{classeo_aged_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Object$>$ class eo\-Aged$<$ Object $>$}
|
||||
|
||||
eo\-Age is a template class that adds an age to an object.$\backslash$ Requisites for template instantiation are that the object must admit a default ctor and a copy ctor.
|
||||
|
||||
The Object must be an {\bf eo\-Object}{\rm (p.\,\pageref{classeo_object})}, thus, it must have its methods: class\-Name, print\-On, read\-From. \begin{Desc}
|
||||
\item[See also:]{\bf eo\-Object}{\rm (p.\,\pageref{classeo_object})} \end{Desc}
|
||||
|
||||
|
||||
|
||||
|
||||
Definition at line 47 of file eo\-Aged.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{eoAged@{eo\-Aged}!eoAged@{eoAged}}
|
||||
\index{eoAged@{eoAged}!eoAged@{eo\-Aged}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Object$>$ {\bf eo\-Aged}$<$ Object $>$::{\bf eo\-Aged} ()\hspace{0.3cm}{\tt [inline, private]}}\label{classeo_aged_d0}
|
||||
|
||||
|
||||
Default Constructor.
|
||||
|
||||
$\backslash$ It180s private so that it is not used anywhere; the right way of using this object is to create an Object and passing it to an aged by means of the copy ctor; that way it180s turned into an Aged object
|
||||
|
||||
Definition at line 103 of file eo\-Aged.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoAged@{eo\-Aged}!className@{className}}
|
||||
\index{className@{className}!eoAged@{eo\-Aged}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Object$>$ virtual std::string {\bf eo\-Aged}$<$ Object $>$::class\-Name () const\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_aged_z9_0}
|
||||
|
||||
|
||||
Return the class id.
|
||||
|
||||
This should be redefined in each class; but it's got code as an example of implementation. Only \char`\"{}leaf\char`\"{} classes can be non-virtual.
|
||||
|
||||
Definition at line 74 of file eo\-Aged.h.\index{eoAged@{eo\-Aged}!readFrom@{readFrom}}
|
||||
\index{readFrom@{readFrom}!eoAged@{eo\-Aged}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Object$>$ virtual void {\bf eo\-Aged}$<$ Object $>$::read\-From (istream \& {\em \_\-is})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_aged_z9_1}
|
||||
|
||||
|
||||
Read object.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-is}]A istream. \end{description}
|
||||
\end{Desc}
|
||||
\begin{Desc}
|
||||
\item[Exceptions:]
|
||||
\begin{description}
|
||||
\item[{\em runtime\_\-exception}]If a valid object can't be read. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 81 of file eo\-Aged.h.\index{eoAged@{eo\-Aged}!printOn@{printOn}}
|
||||
\index{printOn@{printOn}!eoAged@{eo\-Aged}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Object$>$ virtual void {\bf eo\-Aged}$<$ Object $>$::print\-On (ostream \& {\em \_\-os}) const\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_aged_z9_2}
|
||||
|
||||
|
||||
Write object.
|
||||
|
||||
It's called print\-On since it prints the object \_\-on\_\- a stream. \begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-os}]A ostream. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 91 of file eo\-Aged.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Aged.h\end{CompactItemize}
|
||||
225
trunk/paradiseo-eo/doc/latex/classeo_algo.eps
Normal file
225
trunk/paradiseo-eo/doc/latex/classeo_algo.eps
Normal file
|
|
@ -0,0 +1,225 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 102.171
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.89375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoAlgo< EOT >) cw
|
||||
(eoUF< eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoPop< EOT > &, void >) cw
|
||||
(eoCellularEasyEA< EOT >) cw
|
||||
(eoEasyEA< EOT >) cw
|
||||
(eoSGA< EOT >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoAlgo< EOT >) 1 1 box
|
||||
(eoUF< eoPop< EOT > &, void >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< eoPop< EOT > &, void >) 1.5 3 box
|
||||
(eoCellularEasyEA< EOT >) 0 0 box
|
||||
(eoEasyEA< EOT >) 1 0 box
|
||||
(eoSGA< EOT >) 2 0 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1 1 out
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
solid
|
||||
1 1 0.25 out
|
||||
solid
|
||||
0 2 1 conn
|
||||
solid
|
||||
0 0 0.75 in
|
||||
solid
|
||||
0 1 0.75 in
|
||||
solid
|
||||
0 2 0.75 in
|
||||
29
trunk/paradiseo-eo/doc/latex/classeo_algo.tex
Normal file
29
trunk/paradiseo-eo/doc/latex/classeo_algo.tex
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
\section{eo\-Algo$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_algo}\index{eoAlgo@{eoAlgo}}
|
||||
This is a generic class for population-transforming algorithms.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Algo.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Algo$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.86079cm]{classeo_algo}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Algo$<$ EOT $>$}
|
||||
|
||||
This is a generic class for population-transforming algorithms.
|
||||
|
||||
There is only one operator defined, which takes a population and does stuff to it. It needn't be a complete algorithm, can be also a step of an algorithm. This class just gives a common interface to linear population-transforming algorithms.
|
||||
|
||||
|
||||
|
||||
Definition at line 39 of file eo\-Algo.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Algo.h\end{CompactItemize}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
\section{eo\-Arithmetic\-Crossover Class Reference}
|
||||
\label{classeo_arithmetic_crossover}\index{eoArithmeticCrossover@{eoArithmeticCrossover}}
|
||||
eo\-Hypercube\-Crossover --$>$ uniform choice in hypercube == arithmetical with different values for each coordinate
|
||||
|
||||
|
||||
{\tt \#include $<$Tutorial/eo\-Real\-Op.h$>$}
|
||||
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
eo\-Hypercube\-Crossover --$>$ uniform choice in hypercube == arithmetical with different values for each coordinate
|
||||
|
||||
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Real\-Op.h\end{CompactItemize}
|
||||
|
|
@ -0,0 +1,233 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 112.613
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.44 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 5 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoAssembledFitnessAverageStat< EOT >) cw
|
||||
(eoStat< EOT, double >) cw
|
||||
(eoValueParam< double >) cw
|
||||
(eoStatBase< EOT >) cw
|
||||
(eoParam) cw
|
||||
(eoUF< const eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoAssembledFitnessAverageStat< EOT >) 0.5 0 box
|
||||
(eoStat< EOT, double >) 0.5 1 box
|
||||
(eoValueParam< double >) 0 2 box
|
||||
(eoStatBase< EOT >) 1 2 box
|
||||
(eoParam) 0 3 box
|
||||
(eoUF< const eoPop< EOT > &, void >) 1 3 box
|
||||
(eoFunctorBase) 0.5 4 box
|
||||
(unary_function< const eoPop< EOT > &, void >) 1.5 4 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
0 1 3 out
|
||||
solid
|
||||
0.5 1.5 4 conn
|
||||
solid
|
||||
1 0.5 4 in
|
||||
solid
|
||||
1 1.5 4 in
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
\section{eo\-Assembled\-Fitness\-Average\-Stat$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_assembled_fitness_average_stat}\index{eoAssembledFitnessAverageStat@{eoAssembledFitnessAverageStat}}
|
||||
Average fitness values of a population, where the fitness is of type eo\-Scalar\-Assembled\-Fitness.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Assembled\-Fitness\-Stat.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Assembled\-Fitness\-Average\-Stat$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.15315cm]{classeo_assembled_fitness_average_stat}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef EOT::Fitness {\bf Fitness}\label{classeo_assembled_fitness_average_stat_w0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Assembled\-Fitness\-Average\-Stat} (unsigned \_\-which\-Term=0, std::string \_\-description=\char`\"{}Average Fitness\char`\"{})\label{classeo_assembled_fitness_average_stat_a0}
|
||||
|
||||
\item
|
||||
virtual void {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_assembled_fitness_average_stat_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf which\-Fitness\-Term}\label{classeo_assembled_fitness_average_stat_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Assembled\-Fitness\-Average\-Stat$<$ EOT $>$}
|
||||
|
||||
Average fitness values of a population, where the fitness is of type eo\-Scalar\-Assembled\-Fitness.
|
||||
|
||||
Specify in the constructor, for which fitness term (index) the average should be evaluated. Only values of object where the failed boolean = false is set are counted.
|
||||
|
||||
|
||||
|
||||
Definition at line 46 of file eo\-Assembled\-Fitness\-Stat.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Assembled\-Fitness\-Stat.h\end{CompactItemize}
|
||||
|
|
@ -0,0 +1,233 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 112.613
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.44 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 5 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoAssembledFitnessBestStat< EOT >) cw
|
||||
(eoStat< EOT, double >) cw
|
||||
(eoValueParam< double >) cw
|
||||
(eoStatBase< EOT >) cw
|
||||
(eoParam) cw
|
||||
(eoUF< const eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoAssembledFitnessBestStat< EOT >) 0.5 0 box
|
||||
(eoStat< EOT, double >) 0.5 1 box
|
||||
(eoValueParam< double >) 0 2 box
|
||||
(eoStatBase< EOT >) 1 2 box
|
||||
(eoParam) 0 3 box
|
||||
(eoUF< const eoPop< EOT > &, void >) 1 3 box
|
||||
(eoFunctorBase) 0.5 4 box
|
||||
(unary_function< const eoPop< EOT > &, void >) 1.5 4 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
0 1 3 out
|
||||
solid
|
||||
0.5 1.5 4 conn
|
||||
solid
|
||||
1 0.5 4 in
|
||||
solid
|
||||
1 1.5 4 in
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
\section{eo\-Assembled\-Fitness\-Best\-Stat$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_assembled_fitness_best_stat}\index{eoAssembledFitnessBestStat@{eoAssembledFitnessBestStat}}
|
||||
Fitness values of best individuum in a population, where the fitness is of type eo\-Scalar\-Assembled\-Fitness.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Assembled\-Fitness\-Stat.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Assembled\-Fitness\-Best\-Stat$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.15315cm]{classeo_assembled_fitness_best_stat}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef EOT::Fitness {\bf Fitness}\label{classeo_assembled_fitness_best_stat_w0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Assembled\-Fitness\-Best\-Stat} (unsigned \_\-which\-Term=0, std::string \_\-description=\char`\"{}Best Fitness\char`\"{})\label{classeo_assembled_fitness_best_stat_a0}
|
||||
|
||||
\item
|
||||
virtual void {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_assembled_fitness_best_stat_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf which\-Fitness\-Term}\label{classeo_assembled_fitness_best_stat_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Assembled\-Fitness\-Best\-Stat$<$ EOT $>$}
|
||||
|
||||
Fitness values of best individuum in a population, where the fitness is of type eo\-Scalar\-Assembled\-Fitness.
|
||||
|
||||
Specify in the constructor, for which fitness term (index) the value should be evaluated.
|
||||
|
||||
|
||||
|
||||
Definition at line 87 of file eo\-Assembled\-Fitness\-Stat.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Assembled\-Fitness\-Stat.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_atom_exchange.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_atom_exchange.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 149.813
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.3375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoAtomExchange< Atom >) cw
|
||||
(eoBF< unsigned, Atom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< unsigned, Atom &, bool >) cw
|
||||
(eoUniformAtomExchange< Atom >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoAtomExchange< Atom >) 0.5 1 box
|
||||
(eoBF< unsigned, Atom &, bool >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(binary_function< unsigned, Atom &, bool >) 1 3 box
|
||||
(eoUniformAtomExchange< Atom >) 0.5 0 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
1 0.5 0.25 out
|
||||
solid
|
||||
0 0.5 0.75 in
|
||||
36
trunk/paradiseo-eo/doc/latex/classeo_atom_exchange.tex
Normal file
36
trunk/paradiseo-eo/doc/latex/classeo_atom_exchange.tex
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
\section{eo\-Atom\-Exchange$<$ Atom $>$ Class Template Reference}
|
||||
\label{classeo_atom_exchange}\index{eoAtomExchange@{eoAtomExchange}}
|
||||
A helper class for choosing which genes to exchange.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Variable\-Length\-Crossover.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Atom\-Exchange$<$ Atom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=4cm]{classeo_atom_exchange}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual void {\bf randomize} (unsigned int, unsigned int)\label{classeo_atom_exchange_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em a function to initlialize - to be called before every crossover \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const =0\label{classeo_atom_exchange_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em the inherited {\bf class\-Name()}{\rm (p.\,\pageref{classeo_atom_exchange_a1})} \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Atom$>$ class eo\-Atom\-Exchange$<$ Atom $>$}
|
||||
|
||||
A helper class for choosing which genes to exchange.
|
||||
|
||||
|
||||
|
||||
Definition at line 41 of file eo\-Variable\-Length\-Crossover.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Variable\-Length\-Crossover.h\end{CompactItemize}
|
||||
233
trunk/paradiseo-eo/doc/latex/classeo_average_stat.eps
Normal file
233
trunk/paradiseo-eo/doc/latex/classeo_average_stat.eps
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 112.613
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.44 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 5 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoAverageStat< EOT >) cw
|
||||
(eoStat< EOT, EOT::Fitness >) cw
|
||||
(eoValueParam< EOT::Fitness >) cw
|
||||
(eoStatBase< EOT >) cw
|
||||
(eoParam) cw
|
||||
(eoUF< const eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoAverageStat< EOT >) 0.5 0 box
|
||||
(eoStat< EOT, EOT::Fitness >) 0.5 1 box
|
||||
(eoValueParam< EOT::Fitness >) 0 2 box
|
||||
(eoStatBase< EOT >) 1 2 box
|
||||
(eoParam) 0 3 box
|
||||
(eoUF< const eoPop< EOT > &, void >) 1 3 box
|
||||
(eoFunctorBase) 0.5 4 box
|
||||
(unary_function< const eoPop< EOT > &, void >) 1.5 4 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
0 1 3 out
|
||||
solid
|
||||
0.5 1.5 4 conn
|
||||
solid
|
||||
1 0.5 4 in
|
||||
solid
|
||||
1 1.5 4 in
|
||||
69
trunk/paradiseo-eo/doc/latex/classeo_average_stat.tex
Normal file
69
trunk/paradiseo-eo/doc/latex/classeo_average_stat.tex
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
\section{eo\-Average\-Stat$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_average_stat}\index{eoAverageStat@{eoAverageStat}}
|
||||
Average fitness of a population.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Stat.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Average\-Stat$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.15315cm]{classeo_average_stat}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef EOT::Fitness {\bf Fitness}\label{classeo_average_stat_w0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Average\-Stat} (std::string \_\-description=\char`\"{}Average Fitness\char`\"{})\label{classeo_average_stat_a0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Average\-Stat} (double \_\-value, std::string \_\-desc)\label{classeo_average_stat_a1}
|
||||
|
||||
\item
|
||||
virtual void {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_average_stat_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_average_stat_a3}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Static Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
Fitness {\bf sum\-Fitness} (double \_\-sum, const {\bf EOT} \&\_\-eot)\label{classeo_average_stat_e0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
template$<$class T$>$ void {\bf doit} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop, {\bf eo\-Pareto\-Fitness}$<$ T $>$)\label{classeo_average_stat_d0}
|
||||
|
||||
\item
|
||||
template$<$class T$>$ void {\bf doit} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop, T)\label{classeo_average_stat_d1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Average\-Stat$<$ EOT $>$}
|
||||
|
||||
Average fitness of a population.
|
||||
|
||||
Fitness can be:\begin{itemize}
|
||||
\item double\item eo\-Minimizing\-Fitness or eo\-Maximizing\-Fitness\item {\bf eo\-Pareto\-Fitness}{\rm (p.\,\pageref{classeo_pareto_fitness})}: The average of each objective is evaluated.\end{itemize}
|
||||
|
||||
|
||||
( For {\bf eo\-Scalar\-Fitness\-Assembled}{\rm (p.\,\pageref{classeo_scalar_fitness_assembled})} user eo\-Assembled\-Fitness\-Stat classes.)
|
||||
|
||||
|
||||
|
||||
Definition at line 108 of file eo\-Stat.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Stat.h\end{CompactItemize}
|
||||
197
trunk/paradiseo-eo/doc/latex/classeo_b_f.eps
Normal file
197
trunk/paradiseo-eo/doc/latex/classeo_b_f.eps
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 303.03
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.65 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 2 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBF< A1, A2, R >) cw
|
||||
(eoFunctorBase) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBF< A1, A2, R >) 0 0 box
|
||||
(eoFunctorBase) 0 1 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
44
trunk/paradiseo-eo/doc/latex/classeo_b_f.tex
Normal file
44
trunk/paradiseo-eo/doc/latex/classeo_b_f.tex
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
\section{eo\-BF$<$ A1, A2, R $>$ Class Template Reference}
|
||||
\label{classeo_b_f}\index{eoBF@{eoBF}}
|
||||
Basic Binary Functor.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Functor.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-BF$<$ A1, A2, R $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2cm]{classeo_b_f}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual {\bf $\sim$eo\-BF} ()\label{classeo_b_f_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em virtual dtor here so there is no need to define it in derived classes \item\end{CompactList}\item
|
||||
virtual R {\bf operator()} (A1, A2)=0\label{classeo_b_f_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Static Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Functor\-Base::binary\_\-function\_\-tag} {\bf functor\_\-category} ()\label{classeo_b_f_e0}
|
||||
|
||||
\begin{CompactList}\small\item\em tag to identify a procedure in compile time function selection functor\_\-category \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class A1, class A2, class R$>$ class eo\-BF$<$ A1, A2, R $>$}
|
||||
|
||||
Basic Binary Functor.
|
||||
|
||||
Derive from this class when defining any binary function. First template argument is result\_\-type, second is first\_\-argument\_\-type, third is second\_\-argument\_\-type. Argument and result types can be any type including void for result\_\-type
|
||||
|
||||
|
||||
|
||||
Definition at line 145 of file eo\-Functor.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Functor.h\end{CompactItemize}
|
||||
233
trunk/paradiseo-eo/doc/latex/classeo_best_fitness_stat.eps
Normal file
233
trunk/paradiseo-eo/doc/latex/classeo_best_fitness_stat.eps
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 112.613
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.44 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 5 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBestFitnessStat< EOT >) cw
|
||||
(eoStat< EOT, EOT::Fitness >) cw
|
||||
(eoValueParam< EOT::Fitness >) cw
|
||||
(eoStatBase< EOT >) cw
|
||||
(eoParam) cw
|
||||
(eoUF< const eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBestFitnessStat< EOT >) 0.5 0 box
|
||||
(eoStat< EOT, EOT::Fitness >) 0.5 1 box
|
||||
(eoValueParam< EOT::Fitness >) 0 2 box
|
||||
(eoStatBase< EOT >) 1 2 box
|
||||
(eoParam) 0 3 box
|
||||
(eoUF< const eoPop< EOT > &, void >) 1 3 box
|
||||
(eoFunctorBase) 0.5 4 box
|
||||
(unary_function< const eoPop< EOT > &, void >) 1.5 4 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
0 1 3 out
|
||||
solid
|
||||
0.5 1.5 4 conn
|
||||
solid
|
||||
1 0.5 4 in
|
||||
solid
|
||||
1 1.5 4 in
|
||||
60
trunk/paradiseo-eo/doc/latex/classeo_best_fitness_stat.tex
Normal file
60
trunk/paradiseo-eo/doc/latex/classeo_best_fitness_stat.tex
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
\section{eo\-Best\-Fitness\-Stat$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_best_fitness_stat}\index{eoBestFitnessStat@{eoBestFitnessStat}}
|
||||
Best fitness of a population.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Stat.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Best\-Fitness\-Stat$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.15315cm]{classeo_best_fitness_stat}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef EOT::Fitness {\bf Fitness}\label{classeo_best_fitness_stat_w0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Best\-Fitness\-Stat} (std::string \_\-description=\char`\"{}Best \char`\"{})\label{classeo_best_fitness_stat_a0}
|
||||
|
||||
\item
|
||||
void {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_best_fitness_stat_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_best_fitness_stat_a2}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
template$<$class T$>$ void {\bf doit} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop, {\bf eo\-Pareto\-Fitness}$<$ T $>$)\label{classeo_best_fitness_stat_d0}
|
||||
|
||||
\item
|
||||
template$<$class T$>$ void {\bf doit} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop, T)\label{classeo_best_fitness_stat_d1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Best\-Fitness\-Stat$<$ EOT $>$}
|
||||
|
||||
Best fitness of a population.
|
||||
|
||||
Fitness can be:\begin{itemize}
|
||||
\item double\item eo\-Minimizing\-Fitness or eo\-Maximizing\-Fitness\item {\bf eo\-Pareto\-Fitness}{\rm (p.\,\pageref{classeo_pareto_fitness})}:\end{itemize}
|
||||
|
||||
|
||||
( For {\bf eo\-Scalar\-Fitness\-Assembled}{\rm (p.\,\pageref{classeo_scalar_fitness_assembled})} look at eo\-Assembled\-Fitness\-Stat )
|
||||
|
||||
|
||||
|
||||
Definition at line 316 of file eo\-Stat.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Stat.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_best_select.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_best_select.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 115.607
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4.325 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBestSelect< EOT >) cw
|
||||
(eoSelectOne< EOT >) cw
|
||||
(eoUF< const eoPop< EOT > &, const EOT & >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, const EOT & >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBestSelect< EOT >) 0.5 0 box
|
||||
(eoSelectOne< EOT >) 0.5 1 box
|
||||
(eoUF< const eoPop< EOT > &, const EOT & >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< const eoPop< EOT > &, const EOT & >) 1 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
33
trunk/paradiseo-eo/doc/latex/classeo_best_select.tex
Normal file
33
trunk/paradiseo-eo/doc/latex/classeo_best_select.tex
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
\section{eo\-Best\-Select$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_best_select}\index{eoBestSelect@{eoBestSelect}}
|
||||
eo\-Best\-Select: a selection method that always return the best (mainly for testing purposes)
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Random\-Select.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Best\-Select$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.23699cm]{classeo_best_select}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual const {\bf EOT} \& {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_best_select_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em not a big deal!!! \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Best\-Select$<$ EOT $>$}
|
||||
|
||||
eo\-Best\-Select: a selection method that always return the best (mainly for testing purposes)
|
||||
|
||||
|
||||
|
||||
Definition at line 60 of file eo\-Random\-Select.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Random\-Select.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bin_clone_op.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bin_clone_op.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 92.9152
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 5.38125 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBinCloneOp< EOT >) cw
|
||||
(eoBinOp< EOT >) cw
|
||||
(eoOp< EOT >) cw
|
||||
(eoBF< EOT &, const EOT &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< EOT &, const EOT &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBinCloneOp< EOT >) 0.5 0 box
|
||||
(eoBinOp< EOT >) 0.5 1 box
|
||||
(eoOp< EOT >) 0 2 box
|
||||
(eoBF< EOT &, const EOT &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(binary_function< EOT &, const EOT &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
39
trunk/paradiseo-eo/doc/latex/classeo_bin_clone_op.tex
Normal file
39
trunk/paradiseo-eo/doc/latex/classeo_bin_clone_op.tex
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
\section{eo\-Bin\-Clone\-Op$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_bin_clone_op}\index{eoBinCloneOp@{eoBinCloneOp}}
|
||||
Binary clone: two operands, only the first could be modified.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Clone\-Ops.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bin\-Clone\-Op$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.60163cm]{classeo_bin_clone_op}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bin\-Clone\-Op} ()\label{classeo_bin_clone_op_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bin_clone_op_a1}
|
||||
|
||||
\item
|
||||
virtual bool {\bf operator()} ({\bf EOT} \&, const {\bf EOT} \&)\label{classeo_bin_clone_op_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Bin\-Clone\-Op$<$ EOT $>$}
|
||||
|
||||
Binary clone: two operands, only the first could be modified.
|
||||
|
||||
|
||||
|
||||
Definition at line 57 of file eo\-Clone\-Ops.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Clone\-Ops.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bin_gen_op.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bin_gen_op.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 91.0125
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 5.49375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBinGenOp< EOT >) cw
|
||||
(eoGenOp< EOT >) cw
|
||||
(eoOp< EOT >) cw
|
||||
(eoUF< eoPopulator< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoPopulator< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBinGenOp< EOT >) 0.5 0 box
|
||||
(eoGenOp< EOT >) 0.5 1 box
|
||||
(eoOp< EOT >) 0 2 box
|
||||
(eoUF< eoPopulator< EOT > &, void >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< eoPopulator< EOT > &, void >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
48
trunk/paradiseo-eo/doc/latex/classeo_bin_gen_op.tex
Normal file
48
trunk/paradiseo-eo/doc/latex/classeo_bin_gen_op.tex
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
\section{eo\-Bin\-Gen\-Op$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_bin_gen_op}\index{eoBinGenOp@{eoBinGenOp}}
|
||||
Wrapper for binop: here we use select method of {\bf eo\-Populator}{\rm (p.\,\pageref{classeo_populator})} but we could also have an embedded selector to select the second parent.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Gen\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bin\-Gen\-Op$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.54835cm]{classeo_bin_gen_op}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bin\-Gen\-Op} ({\bf eo\-Bin\-Op}$<$ {\bf EOT} $>$ \&\_\-op)\label{classeo_bin_gen_op_a0}
|
||||
|
||||
\item
|
||||
unsigned {\bf max\_\-production} (void)\label{classeo_bin_gen_op_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em Max production is used to reserve space for all elements that are used by the operator, not setting it properly can result in a crash. \item\end{CompactList}\item
|
||||
void {\bf apply} ({\bf eo\-Populator}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_bin_gen_op_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em do the work: get 2 individuals from the population, modifies only one (it's a {\bf eo\-Bin\-Op}{\rm (p.\,\pageref{classeo_bin_op})}) \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bin_gen_op_a3}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bin\-Op}$<$ {\bf EOT} $>$ \& {\bf op}\label{classeo_bin_gen_op_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Bin\-Gen\-Op$<$ EOT $>$}
|
||||
|
||||
Wrapper for binop: here we use select method of {\bf eo\-Populator}{\rm (p.\,\pageref{classeo_populator})} but we could also have an embedded selector to select the second parent.
|
||||
|
||||
|
||||
|
||||
Definition at line 107 of file eo\-Gen\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Gen\-Op.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_bin_op.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_bin_op.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 60.7903
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 8.225 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 3 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBinOp< EOType >) cw
|
||||
(eoOp< EOType >) cw
|
||||
(eoBF< EOType &, const EOType &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< EOType &, const EOType &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBinOp< EOType >) 0.5 0 box
|
||||
(eoOp< EOType >) 0 1 box
|
||||
(eoBF< EOType &, const EOType &, bool >) 1 1 box
|
||||
(eoFunctorBase) 0.5 2 box
|
||||
(binary_function< EOType &, const EOType &, bool >) 1.5 2 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
0 1 1 conn
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
1 1 1 in
|
||||
solid
|
||||
0 1 1 out
|
||||
solid
|
||||
0.5 1.5 2 conn
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
1 1.5 2 in
|
||||
36
trunk/paradiseo-eo/doc/latex/classeo_bin_op.tex
Normal file
36
trunk/paradiseo-eo/doc/latex/classeo_bin_op.tex
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
\section{eo\-Bin\-Op$<$ EOType $>$ Class Template Reference}
|
||||
\label{classeo_bin_op}\index{eoBinOp@{eoBinOp}}
|
||||
Binary genetic operator: subclasses {\bf eo\-Op}{\rm (p.\,\pageref{classeo_op})}, and defines basically the operator() with two operands, only the first one can be modified When defining your own, make sure that you return a boolean value indicating that you have changed the content.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bin\-Op$<$ EOType $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=1.70213cm]{classeo_bin_op}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bin\-Op} ()\label{classeo_bin_op_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bin_op_a1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOType$>$ class eo\-Bin\-Op$<$ EOType $>$}
|
||||
|
||||
Binary genetic operator: subclasses {\bf eo\-Op}{\rm (p.\,\pageref{classeo_op})}, and defines basically the operator() with two operands, only the first one can be modified When defining your own, make sure that you return a boolean value indicating that you have changed the content.
|
||||
|
||||
|
||||
|
||||
Definition at line 117 of file eo\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Op.h\end{CompactItemize}
|
||||
203
trunk/paradiseo-eo/doc/latex/classeo_binary_functor_counter.eps
Normal file
203
trunk/paradiseo-eo/doc/latex/classeo_binary_functor_counter.eps
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 226.415
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 2.20833 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 3 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBinaryFunctorCounter< BinaryFunctor >) cw
|
||||
(eoValueParam< unsigned long >) cw
|
||||
(eoParam) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBinaryFunctorCounter< BinaryFunctor >) 0 0 box
|
||||
(eoValueParam< unsigned long >) 0 1 box
|
||||
(eoParam) 0 2 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
0 0 1 out
|
||||
solid
|
||||
1 0 2 in
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
\section{eo\-Binary\-Functor\-Counter$<$ Binary\-Functor $>$ Class Template Reference}
|
||||
\label{classeo_binary_functor_counter}\index{eoBinaryFunctorCounter@{eoBinaryFunctorCounter}}
|
||||
Generic counter class that counts the number of times a binary function is used.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Counter.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Binary\-Functor\-Counter$<$ Binary\-Functor $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3cm]{classeo_binary_functor_counter}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Binary\-Functor\-Counter} (Binary\-Functor \&\_\-func, std::string \_\-name=\char`\"{}proc\_\-counter\char`\"{})\label{classeo_binary_functor_counter_a0}
|
||||
|
||||
\item
|
||||
Binary\-Functor::result\_\-type {\bf operator()} (typename Binary\-Functor::first\_\-argument\_\-type \_\-arg1, typename Binary\-Functor::second\_\-argument\_\-type \_\-arg2)
|
||||
\begin{CompactList}\small\item\em Calls the embedded function and increments the counter. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
Binary\-Functor \& {\bf func}\label{classeo_binary_functor_counter_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Binary\-Functor$>$ class eo\-Binary\-Functor\-Counter$<$ Binary\-Functor $>$}
|
||||
|
||||
Generic counter class that counts the number of times a binary function is used.
|
||||
|
||||
Add a binary function through its ctor and use this class instead of it.
|
||||
|
||||
It is derived from {\bf eo\-Value\-Param}{\rm (p.\,\pageref{classeo_value_param})} so you can add it to a monitor.
|
||||
|
||||
|
||||
|
||||
Definition at line 142 of file eo\-Counter.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBinaryFunctorCounter@{eo\-Binary\-Functor\-Counter}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBinaryFunctorCounter@{eo\-Binary\-Functor\-Counter}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Binary\-Functor$>$ Binary\-Functor::result\_\-type {\bf eo\-Binary\-Functor\-Counter}$<$ Binary\-Functor $>$::operator() (typename Binary\-Functor::first\_\-argument\_\-type {\em \_\-arg1}, typename Binary\-Functor::second\_\-argument\_\-type {\em \_\-arg2})\hspace{0.3cm}{\tt [inline]}}\label{classeo_binary_functor_counter_a1}
|
||||
|
||||
|
||||
Calls the embedded function and increments the counter.
|
||||
|
||||
Note for MSVC users, if this code does not compile, you are quite likely trying to count a function that has a non-void return type. Don't look at us, look at the MSVC builders. Code like \char`\"{}return void;\char`\"{} is perfectly legal according to the ANSI standard, but the guys at Microsoft didn't get to implementing it yet.
|
||||
|
||||
We had two choices: assuming (and compiling ) code that returns void or code that returns non-void. Given that in {\bf EO}{\rm (p.\,\pageref{class_e_o})} most functors return void, it was chosen to support void.
|
||||
|
||||
But also please let me know if you have a compiler that defines \_\-MSC\_\-VER (lot's of windows compilers do), but is quite capable of compiling return void; type of code. We'll try to change the signature then.
|
||||
|
||||
You happy GNU (and other compiler) users will not have a problem with this.
|
||||
|
||||
Definition at line 166 of file eo\-Counter.h.
|
||||
|
||||
References eo\-Value\-Param$<$ unsigned long $>$::value().
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Counter.h\end{CompactItemize}
|
||||
233
trunk/paradiseo-eo/doc/latex/classeo_bit.eps
Normal file
233
trunk/paradiseo-eo/doc/latex/classeo_bit.eps
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 266.667
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.875 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 6 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBit< FitT >) cw
|
||||
(eoVector< FitT, bool >) cw
|
||||
(EO< FitT >) cw
|
||||
(vector< bool >) cw
|
||||
(eoObject) cw
|
||||
(eoPersistent) cw
|
||||
(eoPrintable) cw
|
||||
(eoVirus< FitT >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBit< FitT >) 1 1 box
|
||||
(eoVector< FitT, bool >) 1 2 box
|
||||
(EO< FitT >) 0.5 3 box
|
||||
(vector< bool >) 1.5 3 box
|
||||
(eoObject) 0 4 box
|
||||
(eoPersistent) 1 4 box
|
||||
(eoPrintable) 1 5 box
|
||||
(eoVirus< FitT >) 1 0 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1 1 out
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
0 0.5 3 out
|
||||
solid
|
||||
0 1 4 conn
|
||||
solid
|
||||
1 1.5 3 in
|
||||
solid
|
||||
1 0 4 in
|
||||
solid
|
||||
1 1 4 in
|
||||
solid
|
||||
0 1 4 out
|
||||
solid
|
||||
1 1 5 in
|
||||
solid
|
||||
1 1 0.25 out
|
||||
solid
|
||||
0 1 0.75 in
|
||||
97
trunk/paradiseo-eo/doc/latex/classeo_bit.tex
Normal file
97
trunk/paradiseo-eo/doc/latex/classeo_bit.tex
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
\section{eo\-Bit$<$ Fit\-T $>$ Class Template Reference}
|
||||
\label{classeo_bit}\index{eoBit@{eoBit}}
|
||||
Implementation of bitstring chromosome.
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit$<$ Fit\-T $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=6cm]{classeo_bit}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bit} (unsigned size=0, bool value=false)
|
||||
\begin{CompactList}\small\item\em (Default) Constructor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bit_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em My class name. \item\end{CompactList}\item
|
||||
virtual void {\bf print\-On} (std::ostream \&os) const
|
||||
\begin{CompactList}\small\item\em To print me on a stream. \item\end{CompactList}\item
|
||||
virtual void {\bf read\-From} (std::istream \&is)
|
||||
\begin{CompactList}\small\item\em To read me from a stream. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Fit\-T$>$ class eo\-Bit$<$ Fit\-T $>$}
|
||||
|
||||
Implementation of bitstring chromosome.
|
||||
|
||||
Based on STL's vector$<$bool$>$ specialization.
|
||||
|
||||
|
||||
|
||||
Definition at line 56 of file eo\-Bit.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{eoBit@{eo\-Bit}!eoBit@{eoBit}}
|
||||
\index{eoBit@{eoBit}!eoBit@{eo\-Bit}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Fit\-T$>$ {\bf eo\-Bit}$<$ {\bf Fit\-T} $>$::{\bf eo\-Bit} (unsigned {\em size} = {\tt 0}, bool {\em value} = {\tt false})\hspace{0.3cm}{\tt [inline]}}\label{classeo_bit_a0}
|
||||
|
||||
|
||||
(Default) Constructor.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em size}]Size of the binary std::string. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 69 of file eo\-Bit.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBit@{eo\-Bit}!printOn@{printOn}}
|
||||
\index{printOn@{printOn}!eoBit@{eo\-Bit}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Fit\-T$>$ virtual void {\bf eo\-Bit}$<$ {\bf Fit\-T} $>$::print\-On (std::ostream \& {\em os}) const\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_a2}
|
||||
|
||||
|
||||
To print me on a stream.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em os}]The std::ostream. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Reimplemented from {\bf eo\-Vector$<$ Fit\-T, bool $>$} {\rm (p.\,\pageref{classeo_vector_a4})}.
|
||||
|
||||
Definition at line 82 of file eo\-Bit.h.
|
||||
|
||||
References EO$<$ F $>$::print\-On().\index{eoBit@{eo\-Bit}!readFrom@{readFrom}}
|
||||
\index{readFrom@{readFrom}!eoBit@{eo\-Bit}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Fit\-T$>$ virtual void {\bf eo\-Bit}$<$ {\bf Fit\-T} $>$::read\-From (std::istream \& {\em is})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_a3}
|
||||
|
||||
|
||||
To read me from a stream.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em is}]The std::istream. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Reimplemented from {\bf eo\-Vector$<$ Fit\-T, bool $>$} {\rm (p.\,\pageref{classeo_vector_a5})}.
|
||||
|
||||
Definition at line 94 of file eo\-Bit.h.
|
||||
|
||||
References EO$<$ F $>$::read\-From().
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit.h\end{CompactItemize}
|
||||
17
trunk/paradiseo-eo/doc/latex/classeo_bit_bit_flip.tex
Normal file
17
trunk/paradiseo-eo/doc/latex/classeo_bit_bit_flip.tex
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
\section{eo\-Bit\-Bit\-Flip Class Reference}
|
||||
\label{classeo_bit_bit_flip}\index{eoBitBitFlip@{eoBitBitFlip}}
|
||||
eo\-Bit\-Flip --$>$ changes 1 bit
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
eo\-Bit\-Flip --$>$ changes 1 bit
|
||||
|
||||
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bit_gx_over.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bit_gx_over.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 96.6184
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 5.175 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBitGxOver< Chrom >) cw
|
||||
(eoQuadOp< Chrom >) cw
|
||||
(eoOp< Chrom >) cw
|
||||
(eoBF< Chrom &, Chrom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< Chrom &, Chrom &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBitGxOver< Chrom >) 0.5 0 box
|
||||
(eoQuadOp< Chrom >) 0.5 1 box
|
||||
(eoOp< Chrom >) 0 2 box
|
||||
(eoBF< Chrom &, Chrom &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(binary_function< Chrom &, Chrom &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
66
trunk/paradiseo-eo/doc/latex/classeo_bit_gx_over.tex
Normal file
66
trunk/paradiseo-eo/doc/latex/classeo_bit_gx_over.tex
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
\section{eo\-Bit\-Gx\-Over$<$ Chrom $>$ Class Template Reference}
|
||||
\label{classeo_bit_gx_over}\index{eoBitGxOver@{eoBitGxOver}}
|
||||
eo\-Bit\-Gx\-Over --$>$ Npts crossover when bistd::string considered as a std::string of binary-encoded genes (exchanges genes) Is anybody still using it apart from historians ??? :-)
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit\-Gx\-Over$<$ Chrom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.70531cm]{classeo_bit_gx_over}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bit\-Gx\-Over} (const unsigned \_\-gene\_\-size, const unsigned \_\-num\_\-points=2)\label{classeo_bit_gx_over_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bit_gx_over_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (Chrom \&chrom1, Chrom \&chrom2)
|
||||
\begin{CompactList}\small\item\em Gene crossover for binary chromosomes. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf gene\_\-size}\label{classeo_bit_gx_over_r0}
|
||||
|
||||
\item
|
||||
unsigned {\bf num\_\-points}\label{classeo_bit_gx_over_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Chrom$>$ class eo\-Bit\-Gx\-Over$<$ Chrom $>$}
|
||||
|
||||
eo\-Bit\-Gx\-Over --$>$ Npts crossover when bistd::string considered as a std::string of binary-encoded genes (exchanges genes) Is anybody still using it apart from historians ??? :-)
|
||||
|
||||
|
||||
|
||||
Definition at line 388 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBitGxOver@{eo\-Bit\-Gx\-Over}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBitGxOver@{eo\-Bit\-Gx\-Over}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ bool {\bf eo\-Bit\-Gx\-Over}$<$ Chrom $>$::operator() (Chrom \& {\em chrom1}, Chrom \& {\em chrom2})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_gx_over_a2}
|
||||
|
||||
|
||||
Gene crossover for binary chromosomes.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom1}]The first chromosome. \item[{\em chrom2}]The first chromosome. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-BF$<$ Chrom \&, Chrom \&, bool $>$} {\rm (p.\,\pageref{classeo_b_f_a1})}.
|
||||
|
||||
Definition at line 409 of file eo\-Bit\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bit_inversion.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bit_inversion.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 125.196
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.99375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBitInversion< Chrom >) cw
|
||||
(eoMonOp< Chrom >) cw
|
||||
(eoOp< Chrom >) cw
|
||||
(eoUF< Chrom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< Chrom &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBitInversion< Chrom >) 0.5 0 box
|
||||
(eoMonOp< Chrom >) 0.5 1 box
|
||||
(eoOp< Chrom >) 0 2 box
|
||||
(eoUF< Chrom &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< Chrom &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
54
trunk/paradiseo-eo/doc/latex/classeo_bit_inversion.tex
Normal file
54
trunk/paradiseo-eo/doc/latex/classeo_bit_inversion.tex
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
\section{eo\-Bit\-Inversion$<$ Chrom $>$ Class Template Reference}
|
||||
\label{classeo_bit_inversion}\index{eoBitInversion@{eoBitInversion}}
|
||||
eo\-Bit\-Inversion: inverts the bits of the chromosome between an interval
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit\-Inversion$<$ Chrom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.50548cm]{classeo_bit_inversion}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bit_inversion_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (Chrom \&chrom)
|
||||
\begin{CompactList}\small\item\em Inverts a range of bits in a binary chromosome. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Chrom$>$ class eo\-Bit\-Inversion$<$ Chrom $>$}
|
||||
|
||||
eo\-Bit\-Inversion: inverts the bits of the chromosome between an interval
|
||||
|
||||
|
||||
|
||||
Definition at line 146 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBitInversion@{eo\-Bit\-Inversion}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBitInversion@{eo\-Bit\-Inversion}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ bool {\bf eo\-Bit\-Inversion}$<$ Chrom $>$::operator() (Chrom \& {\em chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_inversion_a1}
|
||||
|
||||
|
||||
Inverts a range of bits in a binary chromosome.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The chromosome whos bits are going to be inverted (a range). \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ Chrom \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 156 of file eo\-Bit\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bit_mutation.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bit_mutation.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 125.196
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.99375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBitMutation< Chrom >) cw
|
||||
(eoMonOp< Chrom >) cw
|
||||
(eoOp< Chrom >) cw
|
||||
(eoUF< Chrom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< Chrom &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBitMutation< Chrom >) 0.5 0 box
|
||||
(eoMonOp< Chrom >) 0.5 1 box
|
||||
(eoOp< Chrom >) 0 2 box
|
||||
(eoUF< Chrom &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< Chrom &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
82
trunk/paradiseo-eo/doc/latex/classeo_bit_mutation.tex
Normal file
82
trunk/paradiseo-eo/doc/latex/classeo_bit_mutation.tex
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
\section{eo\-Bit\-Mutation$<$ Chrom $>$ Class Template Reference}
|
||||
\label{classeo_bit_mutation}\index{eoBitMutation@{eoBitMutation}}
|
||||
eo\-Bit\-Mutation --$>$ classical mutation
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit\-Mutation$<$ Chrom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.50548cm]{classeo_bit_mutation}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bit\-Mutation} (const double \&\_\-rate=0.01, bool \_\-normalize=false)
|
||||
\begin{CompactList}\small\item\em (Default) Constructor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bit_mutation_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (Chrom \&chrom)
|
||||
\begin{CompactList}\small\item\em Mutate a chromosome. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
double {\bf rate}\label{classeo_bit_mutation_r0}
|
||||
|
||||
\item
|
||||
bool {\bf normalize}\label{classeo_bit_mutation_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Chrom$>$ class eo\-Bit\-Mutation$<$ Chrom $>$}
|
||||
|
||||
eo\-Bit\-Mutation --$>$ classical mutation
|
||||
|
||||
|
||||
|
||||
Definition at line 104 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{eoBitMutation@{eo\-Bit\-Mutation}!eoBitMutation@{eoBitMutation}}
|
||||
\index{eoBitMutation@{eoBitMutation}!eoBitMutation@{eo\-Bit\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ {\bf eo\-Bit\-Mutation}$<$ Chrom $>$::{\bf eo\-Bit\-Mutation} (const double \& {\em \_\-rate} = {\tt 0.01}, bool {\em \_\-normalize} = {\tt false})\hspace{0.3cm}{\tt [inline]}}\label{classeo_bit_mutation_a0}
|
||||
|
||||
|
||||
(Default) Constructor.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-rate}]Rate of mutation. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 111 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBitMutation@{eo\-Bit\-Mutation}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBitMutation@{eo\-Bit\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ bool {\bf eo\-Bit\-Mutation}$<$ Chrom $>$::operator() (Chrom \& {\em chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_mutation_a2}
|
||||
|
||||
|
||||
Mutate a chromosome.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The chromosome to be mutated. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ Chrom \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 121 of file eo\-Bit\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bit_next.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bit_next.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 125.196
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.99375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBitNext< Chrom >) cw
|
||||
(eoMonOp< Chrom >) cw
|
||||
(eoOp< Chrom >) cw
|
||||
(eoUF< Chrom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< Chrom &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBitNext< Chrom >) 0.5 0 box
|
||||
(eoMonOp< Chrom >) 0.5 1 box
|
||||
(eoOp< Chrom >) 0 2 box
|
||||
(eoUF< Chrom &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< Chrom &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
54
trunk/paradiseo-eo/doc/latex/classeo_bit_next.tex
Normal file
54
trunk/paradiseo-eo/doc/latex/classeo_bit_next.tex
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
\section{eo\-Bit\-Next$<$ Chrom $>$ Class Template Reference}
|
||||
\label{classeo_bit_next}\index{eoBitNext@{eoBitNext}}
|
||||
eo\-Bit\-Next --$>$ next value when bitstring considered as binary value
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit\-Next$<$ Chrom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.50548cm]{classeo_bit_next}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bit_next_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (Chrom \&chrom)
|
||||
\begin{CompactList}\small\item\em Change the bit std::string x to be x+1. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Chrom$>$ class eo\-Bit\-Next$<$ Chrom $>$}
|
||||
|
||||
eo\-Bit\-Next --$>$ next value when bitstring considered as binary value
|
||||
|
||||
|
||||
|
||||
Definition at line 174 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBitNext@{eo\-Bit\-Next}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBitNext@{eo\-Bit\-Next}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ bool {\bf eo\-Bit\-Next}$<$ Chrom $>$::operator() (Chrom \& {\em chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_next_a1}
|
||||
|
||||
|
||||
Change the bit std::string x to be x+1.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The chromosome to be added one. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ Chrom \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 184 of file eo\-Bit\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
203
trunk/paradiseo-eo/doc/latex/classeo_bit_op_factory.eps
Normal file
203
trunk/paradiseo-eo/doc/latex/classeo_bit_op_factory.eps
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 379.747
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.31667 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 3 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBitOpFactory< EOT >) cw
|
||||
(eoFactory< EOT >) cw
|
||||
(eoObject) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBitOpFactory< EOT >) 0 0 box
|
||||
(eoFactory< EOT >) 0 1 box
|
||||
(eoObject) 0 2 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
0 0 1 out
|
||||
solid
|
||||
1 0 2 in
|
||||
72
trunk/paradiseo-eo/doc/latex/classeo_bit_op_factory.tex
Normal file
72
trunk/paradiseo-eo/doc/latex/classeo_bit_op_factory.tex
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
\section{eo\-Bit\-Op\-Factory$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_bit_op_factory}\index{eoBitOpFactory@{eoBitOpFactory}}
|
||||
{\bf EO}{\rm (p.\,\pageref{class_e_o})} Factory.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Bit\-Op\-Factory.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit\-Op\-Factory$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3cm]{classeo_bit_op_factory}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual {\bf eo\-Op}$<$ {\bf EOT} $>$ $\ast$ {\bf make} (std::istream \&\_\-is)
|
||||
\begin{CompactList}\small\item\em Another factory method: creates an object from an std::istream, reading from it whatever is needed to create the object. \item\end{CompactList}\end{CompactItemize}
|
||||
\begin{Indent}{\bf ctors and dtors}\par
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Bit\-Op\-Factory} ()\label{classeo_bit_op_factory_z23_0}
|
||||
|
||||
\begin{CompactList}\small\item\em constructor \item\end{CompactList}\item
|
||||
virtual {\bf $\sim$eo\-Bit\-Op\-Factory} ()\label{classeo_bit_op_factory_z23_1}
|
||||
|
||||
\begin{CompactList}\small\item\em destructor \item\end{CompactList}\end{CompactItemize}
|
||||
\end{Indent}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Bit\-Op\-Factory$<$ EOT $>$}
|
||||
|
||||
{\bf EO}{\rm (p.\,\pageref{class_e_o})} Factory.
|
||||
|
||||
An instance of the factory class to create operators that act on bitstring chromosomes. Only those chromosomes can instantiate the operators that are created here \begin{Desc}
|
||||
\item[See also:]{\bf eo\-Select}{\rm (p.\,\pageref{classeo_select})} \end{Desc}
|
||||
|
||||
|
||||
|
||||
|
||||
Definition at line 39 of file eo\-Bit\-Op\-Factory.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBitOpFactory@{eo\-Bit\-Op\-Factory}!make@{make}}
|
||||
\index{make@{make}!eoBitOpFactory@{eo\-Bit\-Op\-Factory}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class EOT$>$ virtual {\bf eo\-Op}$<${\bf EOT}$>$$\ast$ {\bf eo\-Bit\-Op\-Factory}$<$ {\bf EOT} $>$::make (std::istream \& {\em \_\-is})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_op_factory_a0}
|
||||
|
||||
|
||||
Another factory method: creates an object from an std::istream, reading from it whatever is needed to create the object.
|
||||
|
||||
Usually, the format for the std::istream will be$\backslash$ object\-Type parameter1 parameter2 ... parametern$\backslash$ If there are problems, an std::exception is raised; it should be caught at the upper level, because it might be something for that level$\backslash$ At the same time, it catches std::exceptions thrown at a lower level, which will indicate that whatever is in the stream is for this method to process \begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-is}]an stream from where a single line will be read \end{description}
|
||||
\end{Desc}
|
||||
\begin{Desc}
|
||||
\item[Exceptions:]
|
||||
\begin{description}
|
||||
\item[{\em runtime\_\-std::exception}]if the object type is not known\end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-Factory$<$ EOT $>$} {\rm (p.\,\pageref{classeo_factory_a0})}.
|
||||
|
||||
Definition at line 63 of file eo\-Bit\-Op\-Factory.h.
|
||||
|
||||
References eo\-Factory$<$ EOClass $>$::make().
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op\-Factory.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bit_prev.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bit_prev.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 125.196
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.99375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBitPrev< Chrom >) cw
|
||||
(eoMonOp< Chrom >) cw
|
||||
(eoOp< Chrom >) cw
|
||||
(eoUF< Chrom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< Chrom &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBitPrev< Chrom >) 0.5 0 box
|
||||
(eoMonOp< Chrom >) 0.5 1 box
|
||||
(eoOp< Chrom >) 0 2 box
|
||||
(eoUF< Chrom &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< Chrom &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
54
trunk/paradiseo-eo/doc/latex/classeo_bit_prev.tex
Normal file
54
trunk/paradiseo-eo/doc/latex/classeo_bit_prev.tex
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
\section{eo\-Bit\-Prev$<$ Chrom $>$ Class Template Reference}
|
||||
\label{classeo_bit_prev}\index{eoBitPrev@{eoBitPrev}}
|
||||
eo\-Bit\-Prev --$>$ previous value when bitstring treated as binary value
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bit\-Prev$<$ Chrom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.50548cm]{classeo_bit_prev}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_bit_prev_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (Chrom \&chrom)
|
||||
\begin{CompactList}\small\item\em Change the bit std::string x to be x-1. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Chrom$>$ class eo\-Bit\-Prev$<$ Chrom $>$}
|
||||
|
||||
eo\-Bit\-Prev --$>$ previous value when bitstring treated as binary value
|
||||
|
||||
|
||||
|
||||
Definition at line 208 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBitPrev@{eo\-Bit\-Prev}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBitPrev@{eo\-Bit\-Prev}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ bool {\bf eo\-Bit\-Prev}$<$ Chrom $>$::operator() (Chrom \& {\em chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_bit_prev_a1}
|
||||
|
||||
|
||||
Change the bit std::string x to be x-1.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The chromosome to be substracted one. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ Chrom \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 218 of file eo\-Bit\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_bool_flip.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_bool_flip.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 133.333
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.75 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBoolFlip) cw
|
||||
(eoMonOp< bool >) cw
|
||||
(eoOp< bool >) cw
|
||||
(eoUF< bool &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< bool &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBoolFlip) 0.5 0 box
|
||||
(eoMonOp< bool >) 0.5 1 box
|
||||
(eoOp< bool >) 0 2 box
|
||||
(eoUF< bool &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< bool &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
34
trunk/paradiseo-eo/doc/latex/classeo_bool_flip.tex
Normal file
34
trunk/paradiseo-eo/doc/latex/classeo_bool_flip.tex
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
\section{eo\-Bool\-Flip Class Reference}
|
||||
\label{classeo_bool_flip}\index{eoBoolFlip@{eoBoolFlip}}
|
||||
a simple boolean mutation - to be used in generic eo\-Op's
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Bool\-Flip.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Bool\-Flip::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.73333cm]{classeo_bool_flip}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
bool {\bf operator()} (bool \&\_\-b)\label{classeo_bool_flip_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em simply flips the boolean argument \item\end{CompactList}\item
|
||||
virtual string {\bf class\-Name} () const \label{classeo_bool_flip_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em inherited {\bf class\-Name()}{\rm (p.\,\pageref{classeo_bool_flip_a1})} \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
a simple boolean mutation - to be used in generic eo\-Op's
|
||||
|
||||
|
||||
|
||||
Definition at line 32 of file eo\-Bool\-Flip.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bool\-Flip.h\end{CompactItemize}
|
||||
209
trunk/paradiseo-eo/doc/latex/classeo_boolean_generator.eps
Normal file
209
trunk/paradiseo-eo/doc/latex/classeo_boolean_generator.eps
Normal file
|
|
@ -0,0 +1,209 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 496.894
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 1.00625 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBooleanGenerator) cw
|
||||
(eoRndGenerator< bool >) cw
|
||||
(eoF< bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBooleanGenerator) 0 0 box
|
||||
(eoRndGenerator< bool >) 0 1 box
|
||||
(eoF< bool >) 0 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
0 0 1 out
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
43
trunk/paradiseo-eo/doc/latex/classeo_boolean_generator.tex
Normal file
43
trunk/paradiseo-eo/doc/latex/classeo_boolean_generator.tex
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
\section{eo\-Boolean\-Generator Class Reference}
|
||||
\label{classeo_boolean_generator}\index{eoBooleanGenerator@{eoBooleanGenerator}}
|
||||
The class eo\-Boolean\-Generator can be used in the STL generate function to easily generate random booleans with a specified bias.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Rnd\-Generators.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Boolean\-Generator::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=4cm]{classeo_boolean_generator}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Boolean\-Generator} (float \_\-bias=0.5, {\bf eo\-Rng} \&\_\-rng=rng)\label{classeo_boolean_generator_a0}
|
||||
|
||||
\item
|
||||
bool {\bf operator()} (void)\label{classeo_boolean_generator_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
float {\bf bias}\label{classeo_boolean_generator_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Rng} \& {\bf gen}\label{classeo_boolean_generator_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
The class eo\-Boolean\-Generator can be used in the STL generate function to easily generate random booleans with a specified bias.
|
||||
|
||||
|
||||
|
||||
Definition at line 104 of file eo\-Rnd\-Generators.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Rnd\-Generators.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_boolean_init.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_boolean_init.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 200
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 2.5 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBooleanInit) cw
|
||||
(eoInit< bool >) cw
|
||||
(eoUF< bool &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< bool &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBooleanInit) 0.5 0 box
|
||||
(eoInit< bool >) 0.5 1 box
|
||||
(eoUF< bool &, void >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< bool &, void >) 1 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
43
trunk/paradiseo-eo/doc/latex/classeo_boolean_init.tex
Normal file
43
trunk/paradiseo-eo/doc/latex/classeo_boolean_init.tex
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
\section{eo\-Boolean\-Init Class Reference}
|
||||
\label{classeo_boolean_init}\index{eoBooleanInit@{eoBooleanInit}}
|
||||
The class eo\-Boolean\-Init can be used in the STL apply function to easily generate random booleans with a specified bias.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Uniform\-Init.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Boolean\-Init::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=4cm]{classeo_boolean_init}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Boolean\-Init} (float \_\-bias=0.5, {\bf eo\-Rng} \&\_\-rng=rng)\label{classeo_boolean_init_a0}
|
||||
|
||||
\item
|
||||
void {\bf operator()} (bool \&\_\-b)\label{classeo_boolean_init_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
float {\bf bias}\label{classeo_boolean_init_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Rng} \& {\bf gen}\label{classeo_boolean_init_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
The class eo\-Boolean\-Init can be used in the STL apply function to easily generate random booleans with a specified bias.
|
||||
|
||||
|
||||
|
||||
Definition at line 110 of file eo\-Uniform\-Init.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Uniform\-Init.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_branch_mutation.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_branch_mutation.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 76.6284
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 6.525 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBranchMutation< FType, Node >) cw
|
||||
(eoMonOp< eoParseTree< FType, Node > >) cw
|
||||
(eoOp< eoParseTree< FType, Node > >) cw
|
||||
(eoUF< eoParseTree< FType, Node > &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoParseTree< FType, Node > &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBranchMutation< FType, Node >) 0.5 0 box
|
||||
(eoMonOp< eoParseTree< FType, Node > >) 0.5 1 box
|
||||
(eoOp< eoParseTree< FType, Node > >) 0 2 box
|
||||
(eoUF< eoParseTree< FType, Node > &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< eoParseTree< FType, Node > &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
91
trunk/paradiseo-eo/doc/latex/classeo_branch_mutation.tex
Normal file
91
trunk/paradiseo-eo/doc/latex/classeo_branch_mutation.tex
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
\section{eo\-Branch\-Mutation$<$ FType, Node $>$ Class Template Reference}
|
||||
\label{classeo_branch_mutation}\index{eoBranchMutation@{eoBranchMutation}}
|
||||
eo\-Branch\-Mutation --$>$ replace a subtree with a randomly created subtree
|
||||
|
||||
|
||||
{\tt \#include $<$gp/eo\-Parse\-Tree\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Branch\-Mutation$<$ FType, Node $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.14559cm]{classeo_branch_mutation}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef {\bf eo\-Parse\-Tree}$<$ FType, Node $>$ {\bf Eo\-Type}\label{classeo_branch_mutation_w0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Branch\-Mutation} ({\bf eo\-Init}$<$ {\bf Eo\-Type} $>$ \&\_\-init, unsigned \_\-max\_\-length)
|
||||
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_branch_mutation_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em the class name \item\end{CompactList}\item
|
||||
virtual {\bf $\sim$eo\-Branch\-Mutation} ()\label{classeo_branch_mutation_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em Dtor. \item\end{CompactList}\item
|
||||
bool {\bf operator()} ({\bf Eo\-Type} \&\_\-eo1)
|
||||
\begin{CompactList}\small\item\em Mutate an individual. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf max\_\-length}\label{classeo_branch_mutation_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Init}$<$ {\bf Eo\-Type} $>$ \& {\bf initializer}\label{classeo_branch_mutation_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class FType, class Node$>$ class eo\-Branch\-Mutation$<$ FType, Node $>$}
|
||||
|
||||
eo\-Branch\-Mutation --$>$ replace a subtree with a randomly created subtree
|
||||
|
||||
|
||||
|
||||
Definition at line 87 of file eo\-Parse\-Tree\-Op.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{eoBranchMutation@{eo\-Branch\-Mutation}!eoBranchMutation@{eoBranchMutation}}
|
||||
\index{eoBranchMutation@{eoBranchMutation}!eoBranchMutation@{eo\-Branch\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class FType, class Node$>$ {\bf eo\-Branch\-Mutation}$<$ FType, Node $>$::{\bf eo\-Branch\-Mutation} ({\bf eo\-Init}$<$ {\bf Eo\-Type} $>$ \& {\em \_\-init}, unsigned {\em \_\-max\_\-length})\hspace{0.3cm}{\tt [inline]}}\label{classeo_branch_mutation_a0}
|
||||
|
||||
|
||||
Constructor.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-init}]An instantiation of eo\-Gp\-Depth\-Initializer \item[{\em \_\-max\_\-length}]the maximum size of an individual \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 97 of file eo\-Parse\-Tree\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoBranchMutation@{eo\-Branch\-Mutation}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoBranchMutation@{eo\-Branch\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class FType, class Node$>$ bool {\bf eo\-Branch\-Mutation}$<$ FType, Node $>$::operator() ({\bf Eo\-Type} \& {\em \_\-eo1})\hspace{0.3cm}{\tt [inline]}}\label{classeo_branch_mutation_a3}
|
||||
|
||||
|
||||
Mutate an individual.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-eo1}]The individual that is to be changed \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 111 of file eo\-Parse\-Tree\-Op.h.
|
||||
|
||||
References eo\-Parse\-Tree$<$ FType, Node $>$::prune\-Tree(), and eo\-Rng::random().
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Parse\-Tree\-Op.h\end{CompactItemize}
|
||||
229
trunk/paradiseo-eo/doc/latex/classeo_breed.eps
Normal file
229
trunk/paradiseo-eo/doc/latex/classeo_breed.eps
Normal file
|
|
@ -0,0 +1,229 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 49.14
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 10.175 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 4 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoBreed< EOT >) cw
|
||||
(eoBF< const eoPop< EOT > &, eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< const eoPop< EOT > &, eoPop< EOT > &, void >) cw
|
||||
(eoBreedOne< EOT >) cw
|
||||
(eoGeneralBreeder< EOT >) cw
|
||||
(eoOneToOneBreeder< EOT >) cw
|
||||
(eoSelectTransform< EOT >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoBreed< EOT >) 1.5 1 box
|
||||
(eoBF< const eoPop< EOT > &, eoPop< EOT > &, void >) 1.5 2 box
|
||||
(eoFunctorBase) 1 3 box
|
||||
(binary_function< const eoPop< EOT > &, eoPop< EOT > &, void >) 2 3 box
|
||||
(eoBreedOne< EOT >) 0 0 box
|
||||
(eoGeneralBreeder< EOT >) 1 0 box
|
||||
(eoOneToOneBreeder< EOT >) 2 0 box
|
||||
(eoSelectTransform< EOT >) 3 0 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1.5 1 out
|
||||
solid
|
||||
1 1.5 2 in
|
||||
solid
|
||||
0 1.5 2 out
|
||||
solid
|
||||
1 2 3 conn
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
1 2 3 in
|
||||
solid
|
||||
1 1.5 0.25 out
|
||||
solid
|
||||
0 3 1 conn
|
||||
solid
|
||||
0 0 0.75 in
|
||||
solid
|
||||
0 1 0.75 in
|
||||
solid
|
||||
0 2 0.75 in
|
||||
solid
|
||||
0 3 0.75 in
|
||||
33
trunk/paradiseo-eo/doc/latex/classeo_breed.tex
Normal file
33
trunk/paradiseo-eo/doc/latex/classeo_breed.tex
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
\section{eo\-Breed$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_breed}\index{eoBreed@{eoBreed}}
|
||||
Breeding: combination of selecting and transforming a population.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Breed.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Breed$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=1.37592cm]{classeo_breed}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Breed$<$ EOT $>$}
|
||||
|
||||
Breeding: combination of selecting and transforming a population.
|
||||
|
||||
Breeding is thought of a combination of selecting and transforming a population. For efficiency reasons you might want to build your own eo\-Breed derived class rather than relying on a seperate select and transform function.
|
||||
|
||||
\begin{Desc}
|
||||
\item[See also:]{\bf eo\-Select}{\rm (p.\,\pageref{classeo_select})}, {\bf eo\-Transform}{\rm (p.\,\pageref{classeo_transform})}, {\bf eo\-Select\-Transform}{\rm (p.\,\pageref{classeo_select_transform})} \end{Desc}
|
||||
|
||||
|
||||
|
||||
|
||||
Definition at line 46 of file eo\-Breed.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Breed.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_breed.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_breed.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 62.0155
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 8.0625 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCMABreed< FitT >) cw
|
||||
(eoBreed< eoVector< FitT, double > >) cw
|
||||
(eoBF< const eoPop< eoVector< FitT, double > > &, eoPop< eoVector< FitT, double > > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< const eoPop< eoVector< FitT, double > > &, eoPop< eoVector< FitT, double > > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCMABreed< FitT >) 0.5 0 box
|
||||
(eoBreed< eoVector< FitT, double > >) 0.5 1 box
|
||||
(eoBF< const eoPop< eoVector< FitT, double > > &, eoPop< eoVector< FitT, double > > &, void >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(binary_function< const eoPop< eoVector< FitT, double > > &, eoPop< eoVector< FitT, double > > &, void >) 1 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
51
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_breed.tex
Normal file
51
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_breed.tex
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
\section{eo\-CMABreed$<$ Fit\-T $>$ Class Template Reference}
|
||||
\label{classeo_c_m_a_breed}\index{eoCMABreed@{eoCMABreed}}
|
||||
TODO, handle bounds.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-CMABreed.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-CMABreed$<$ Fit\-T $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=1.73643cm]{classeo_c_m_a_breed}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-CMABreed} (eo::CMAState \&state\_\-, unsigned lambda\_\-)\label{classeo_c_m_a_breed_a0}
|
||||
|
||||
\item
|
||||
void {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&parents, {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&offspring)\label{classeo_c_m_a_breed_a1}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef {\bf eo\-Vector}$<$ {\bf Fit\-T}, double $>$ {\bf EOT}\label{classeo_c_m_a_breed_y0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
eo::CMAState \& {\bf state}\label{classeo_c_m_a_breed_r0}
|
||||
|
||||
\item
|
||||
unsigned {\bf lambda}\label{classeo_c_m_a_breed_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Fit\-T$>$ class eo\-CMABreed$<$ Fit\-T $>$}
|
||||
|
||||
TODO, handle bounds.
|
||||
|
||||
|
||||
|
||||
Definition at line 36 of file eo\-CMABreed.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-CMABreed.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_init.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_init.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 125
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 4 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCMAInit< FitT >) cw
|
||||
(eoInit< eoVector< FitT, double > >) cw
|
||||
(eoUF< eoVector< FitT, double > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoVector< FitT, double > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCMAInit< FitT >) 0.5 0 box
|
||||
(eoInit< eoVector< FitT, double > >) 0.5 1 box
|
||||
(eoUF< eoVector< FitT, double > &, void >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< eoVector< FitT, double > &, void >) 1 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
48
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_init.tex
Normal file
48
trunk/paradiseo-eo/doc/latex/classeo_c_m_a_init.tex
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
\section{eo\-CMAInit$<$ Fit\-T $>$ Class Template Reference}
|
||||
\label{classeo_c_m_a_init}\index{eoCMAInit@{eoCMAInit}}
|
||||
TODO, handle bounds.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-CMAInit.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-CMAInit$<$ Fit\-T $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.5cm]{classeo_c_m_a_init}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-CMAInit} (const eo::CMAState \&state\_\-)\label{classeo_c_m_a_init_a0}
|
||||
|
||||
\item
|
||||
void {\bf operator()} ({\bf EOT} \&v)\label{classeo_c_m_a_init_a1}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef {\bf eo\-Vector}$<$ {\bf Fit\-T}, double $>$ {\bf EOT}\label{classeo_c_m_a_init_y0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
const eo::CMAState \& {\bf state}\label{classeo_c_m_a_init_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Fit\-T$>$ class eo\-CMAInit$<$ Fit\-T $>$}
|
||||
|
||||
TODO, handle bounds.
|
||||
|
||||
|
||||
|
||||
Definition at line 37 of file eo\-CMAInit.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-CMAInit.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_cellular_easy_e_a.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_cellular_easy_e_a.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 153.257
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.2625 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCellularEasyEA< EOT >) cw
|
||||
(eoAlgo< EOT >) cw
|
||||
(eoUF< eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoPop< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCellularEasyEA< EOT >) 0.5 0 box
|
||||
(eoAlgo< EOT >) 0.5 1 box
|
||||
(eoUF< eoPop< EOT > &, void >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< eoPop< EOT > &, void >) 1 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
72
trunk/paradiseo-eo/doc/latex/classeo_cellular_easy_e_a.tex
Normal file
72
trunk/paradiseo-eo/doc/latex/classeo_cellular_easy_e_a.tex
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
\section{eo\-Cellular\-Easy\-EA$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_cellular_easy_e_a}\index{eoCellularEasyEA@{eoCellularEasyEA}}
|
||||
The abstract cellular easy algorithm.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Cellular\-Easy\-EA.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Cellular\-Easy\-EA$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=4cm]{classeo_cellular_easy_e_a}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Cellular\-Easy\-EA} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont, {\bf eo\-Eval\-Func}$<$ {\bf EOT} $>$ \&\_\-eval, {\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \&\_\-sel\_\-neigh, {\bf eo\-Bin\-Op}$<$ {\bf EOT} $>$ \&\_\-cross, {\bf eo\-Mon\-Op}$<$ {\bf EOT} $>$ \&\_\-mut, {\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \&\_\-sel\_\-repl)\label{classeo_cellular_easy_e_a_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Two constructors. \item\end{CompactList}\item
|
||||
{\bf eo\-Cellular\-Easy\-EA} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont, {\bf eo\-Eval\-Func}$<$ {\bf EOT} $>$ \&\_\-eval, {\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \&\_\-sel\_\-neigh, {\bf eo\-Quad\-Op}$<$ {\bf EOT} $>$ \&\_\-cross, {\bf eo\-Mon\-Op}$<$ {\bf EOT} $>$ \&\_\-mut, {\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \&\_\-sel\_\-child, {\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \&\_\-sel\_\-repl)\label{classeo_cellular_easy_e_a_a1}
|
||||
|
||||
\item
|
||||
void {\bf operator()} ({\bf eo\-Pop}$<$ {\bf EOT} $>$ \&pop)\label{classeo_cellular_easy_e_a_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em For a given population. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Protected Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual {\bf eo\-Pop}$<$ {\bf EOT} $>$ {\bf neighbours} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&pop, int rank)=0\label{classeo_cellular_easy_e_a_b0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Continue}$<$ {\bf EOT} $>$ \& {\bf cont}\label{classeo_cellular_easy_e_a_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Eval\-Func}$<$ {\bf EOT} $>$ \& {\bf eval}\label{classeo_cellular_easy_e_a_r1}
|
||||
|
||||
\item
|
||||
{\bf eo\-Pop\-Loop\-Eval}$<$ {\bf EOT} $>$ {\bf pop\-Eval}\label{classeo_cellular_easy_e_a_r2}
|
||||
|
||||
\item
|
||||
{\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \& {\bf sel\_\-neigh}\label{classeo_cellular_easy_e_a_r3}
|
||||
|
||||
\item
|
||||
{\bf eo\-BF}$<$ {\bf EOT} \&, {\bf EOT} \&, bool $>$ \& {\bf cross}\label{classeo_cellular_easy_e_a_r4}
|
||||
|
||||
\item
|
||||
{\bf eo\-Mon\-Op}$<$ {\bf EOT} $>$ \& {\bf mut}\label{classeo_cellular_easy_e_a_r5}
|
||||
|
||||
\item
|
||||
{\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \& {\bf sel\_\-child}\label{classeo_cellular_easy_e_a_r6}
|
||||
|
||||
\item
|
||||
{\bf eo\-Select\-One}$<$ {\bf EOT} $>$ \& {\bf sel\_\-repl}\label{classeo_cellular_easy_e_a_r7}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Cellular\-Easy\-EA$<$ EOT $>$}
|
||||
|
||||
The abstract cellular easy algorithm.
|
||||
|
||||
|
||||
|
||||
Definition at line 38 of file eo\-Cellular\-Easy\-EA.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Cellular\-Easy\-EA.h\end{CompactItemize}
|
||||
227
trunk/paradiseo-eo/doc/latex/classeo_check_point.eps
Normal file
227
trunk/paradiseo-eo/doc/latex/classeo_check_point.eps
Normal file
|
|
@ -0,0 +1,227 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 90.0901
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 5.55 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCheckPoint< EOT >) cw
|
||||
(eoContinue< EOT >) cw
|
||||
(eoUF< const eoPop< EOT > &, bool >) cw
|
||||
(eoPersistent) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, bool >) cw
|
||||
(eoPrintable) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCheckPoint< EOT >) 1.25 0 box
|
||||
(eoContinue< EOT >) 1.25 1 box
|
||||
(eoUF< const eoPop< EOT > &, bool >) 0.5 2 box
|
||||
(eoPersistent) 2 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< const eoPop< EOT > &, bool >) 1 3 box
|
||||
(eoPrintable) 2 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1.25 0 out
|
||||
solid
|
||||
1 1.25 1 in
|
||||
solid
|
||||
0 1.25 1 out
|
||||
solid
|
||||
0.5 2 2 conn
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 2 2 in
|
||||
solid
|
||||
0 2 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
1 2 3 in
|
||||
77
trunk/paradiseo-eo/doc/latex/classeo_check_point.tex
Normal file
77
trunk/paradiseo-eo/doc/latex/classeo_check_point.tex
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
\section{eo\-Check\-Point$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_check_point}\index{eoCheckPoint@{eoCheckPoint}}
|
||||
eo\-Check\-Point is a container class.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Check\-Point.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Check\-Point$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.52252cm]{classeo_check_point}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Check\-Point} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont)\label{classeo_check_point_a0}
|
||||
|
||||
\item
|
||||
bool {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_check_point_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\item
|
||||
void {\bf add} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont)\label{classeo_check_point_a2}
|
||||
|
||||
\item
|
||||
void {\bf add} ({\bf eo\-Sorted\-Stat\-Base}$<$ {\bf EOT} $>$ \&\_\-stat)\label{classeo_check_point_a3}
|
||||
|
||||
\item
|
||||
void {\bf add} ({\bf eo\-Stat\-Base}$<$ {\bf EOT} $>$ \&\_\-stat)\label{classeo_check_point_a4}
|
||||
|
||||
\item
|
||||
void {\bf add} ({\bf eo\-Monitor} \&\_\-mon)\label{classeo_check_point_a5}
|
||||
|
||||
\item
|
||||
void {\bf add} ({\bf eo\-Updater} \&\_\-upd)\label{classeo_check_point_a6}
|
||||
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_check_point_a7}
|
||||
|
||||
\item
|
||||
std::string {\bf all\-Class\-Names} () const \label{classeo_check_point_a8}
|
||||
|
||||
\begin{CompactList}\small\item\em returns a string with all class\-Name() of data separated with \char`\"{}$\backslash$n\char`\"{} (for debugging) \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Continue}$<$ {\bf EOT} $>$ $\ast$ $>$ {\bf continuators}\label{classeo_check_point_r0}
|
||||
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Sorted\-Stat\-Base}$<$ {\bf EOT} $>$ $\ast$ $>$ {\bf sorted}\label{classeo_check_point_r1}
|
||||
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Stat\-Base}$<$ {\bf EOT} $>$ $\ast$ $>$ {\bf stats}\label{classeo_check_point_r2}
|
||||
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Monitor} $\ast$ $>$ {\bf monitors}\label{classeo_check_point_r3}
|
||||
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Updater} $\ast$ $>$ {\bf updaters}\label{classeo_check_point_r4}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Check\-Point$<$ EOT $>$}
|
||||
|
||||
eo\-Check\-Point is a container class.
|
||||
|
||||
It contains std::vectors of (pointers to) {\bf eo\-Continue}{\rm (p.\,\pageref{classeo_continue})} (modif. MS July 16. 2002) eo\-Stats, {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} and {\bf eo\-Monitor}{\rm (p.\,\pageref{classeo_monitor})} it is an {\bf eo\-Continue}{\rm (p.\,\pageref{classeo_continue})}, so its operator() will be called every generation - and will return the contained-combined-eo\-Continue result but before that it will call in turn every single \{statistics, updaters, monitors\} that it has been given, and after that, if stopping, all last\-Call methods of the above.
|
||||
|
||||
|
||||
|
||||
Definition at line 46 of file eo\-Check\-Point.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Check\-Point.h\end{CompactItemize}
|
||||
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 76.6284
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 6.525 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCollapseSubtreeMutation< FType, Node >) cw
|
||||
(eoMonOp< eoParseTree< FType, Node > >) cw
|
||||
(eoOp< eoParseTree< FType, Node > >) cw
|
||||
(eoUF< eoParseTree< FType, Node > &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< eoParseTree< FType, Node > &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCollapseSubtreeMutation< FType, Node >) 0.5 0 box
|
||||
(eoMonOp< eoParseTree< FType, Node > >) 0.5 1 box
|
||||
(eoOp< eoParseTree< FType, Node > >) 0 2 box
|
||||
(eoUF< eoParseTree< FType, Node > &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< eoParseTree< FType, Node > &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
\section{eo\-Collapse\-Subtree\-Mutation$<$ FType, Node $>$ Class Template Reference}
|
||||
\label{classeo_collapse_subtree_mutation}\index{eoCollapseSubtreeMutation@{eoCollapseSubtreeMutation}}
|
||||
eo\-Collapse\-Subtree --$>$ replace a subtree with a randomly chosen terminal
|
||||
|
||||
|
||||
{\tt \#include $<$gp/eo\-Parse\-Tree\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Collapse\-Subtree\-Mutation$<$ FType, Node $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.14559cm]{classeo_collapse_subtree_mutation}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef {\bf eo\-Parse\-Tree}$<$ FType, Node $>$ {\bf Eo\-Type}\label{classeo_collapse_subtree_mutation_w0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Collapse\-Subtree\-Mutation} ({\bf eo\-Init}$<$ {\bf Eo\-Type} $>$ \&\_\-init, unsigned \_\-max\_\-length)
|
||||
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_collapse_subtree_mutation_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
virtual {\bf $\sim$eo\-Collapse\-Subtree\-Mutation} ()\label{classeo_collapse_subtree_mutation_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em Dtor. \item\end{CompactList}\item
|
||||
bool {\bf operator()} ({\bf Eo\-Type} \&\_\-eo1)
|
||||
\begin{CompactList}\small\item\em Mutate an individual. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf max\_\-length}\label{classeo_collapse_subtree_mutation_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Init}$<$ {\bf Eo\-Type} $>$ \& {\bf initializer}\label{classeo_collapse_subtree_mutation_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class FType, class Node$>$ class eo\-Collapse\-Subtree\-Mutation$<$ FType, Node $>$}
|
||||
|
||||
eo\-Collapse\-Subtree --$>$ replace a subtree with a randomly chosen terminal
|
||||
|
||||
|
||||
|
||||
Definition at line 272 of file eo\-Parse\-Tree\-Op.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{eoCollapseSubtreeMutation@{eo\-Collapse\-Subtree\-Mutation}!eoCollapseSubtreeMutation@{eoCollapseSubtreeMutation}}
|
||||
\index{eoCollapseSubtreeMutation@{eoCollapseSubtreeMutation}!eoCollapseSubtreeMutation@{eo\-Collapse\-Subtree\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class FType, class Node$>$ {\bf eo\-Collapse\-Subtree\-Mutation}$<$ FType, Node $>$::{\bf eo\-Collapse\-Subtree\-Mutation} ({\bf eo\-Init}$<$ {\bf Eo\-Type} $>$ \& {\em \_\-init}, unsigned {\em \_\-max\_\-length})\hspace{0.3cm}{\tt [inline]}}\label{classeo_collapse_subtree_mutation_a0}
|
||||
|
||||
|
||||
Constructor.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-init}]An instantiation of eo\-Gp\-Depth\-Initializer \item[{\em \_\-max\_\-length}]the maximum size of an individual \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 282 of file eo\-Parse\-Tree\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoCollapseSubtreeMutation@{eo\-Collapse\-Subtree\-Mutation}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoCollapseSubtreeMutation@{eo\-Collapse\-Subtree\-Mutation}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class FType, class Node$>$ bool {\bf eo\-Collapse\-Subtree\-Mutation}$<$ FType, Node $>$::operator() ({\bf Eo\-Type} \& {\em \_\-eo1})\hspace{0.3cm}{\tt [inline]}}\label{classeo_collapse_subtree_mutation_a3}
|
||||
|
||||
|
||||
Mutate an individual.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-eo1}]The individual that is to be changed \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 295 of file eo\-Parse\-Tree\-Op.h.
|
||||
|
||||
References eo\-Parse\-Tree$<$ FType, Node $>$::prune\-Tree(), and eo\-Rng::random().
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Parse\-Tree\-Op.h\end{CompactItemize}
|
||||
227
trunk/paradiseo-eo/doc/latex/classeo_combined_continue.eps
Normal file
227
trunk/paradiseo-eo/doc/latex/classeo_combined_continue.eps
Normal file
|
|
@ -0,0 +1,227 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 90.0901
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 5.55 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCombinedContinue< EOT >) cw
|
||||
(eoContinue< EOT >) cw
|
||||
(eoUF< const eoPop< EOT > &, bool >) cw
|
||||
(eoPersistent) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, bool >) cw
|
||||
(eoPrintable) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCombinedContinue< EOT >) 1.25 0 box
|
||||
(eoContinue< EOT >) 1.25 1 box
|
||||
(eoUF< const eoPop< EOT > &, bool >) 0.5 2 box
|
||||
(eoPersistent) 2 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< const eoPop< EOT > &, bool >) 1 3 box
|
||||
(eoPrintable) 2 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1.25 0 out
|
||||
solid
|
||||
1 1.25 1 in
|
||||
solid
|
||||
0 1.25 1 out
|
||||
solid
|
||||
0.5 2 2 conn
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 2 2 in
|
||||
solid
|
||||
0 2 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
1 2 3 in
|
||||
64
trunk/paradiseo-eo/doc/latex/classeo_combined_continue.tex
Normal file
64
trunk/paradiseo-eo/doc/latex/classeo_combined_continue.tex
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
\section{eo\-Combined\-Continue$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_combined_continue}\index{eoCombinedContinue@{eoCombinedContinue}}
|
||||
Combined continuators - logical AND: Continues until one of the embedded continuators says halt!
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Combined\-Continue.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Combined\-Continue$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.52252cm]{classeo_combined_continue}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Types}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
typedef EOT::Fitness {\bf Fitness\-Type}\label{classeo_combined_continue_w0}
|
||||
|
||||
\begin{CompactList}\small\item\em Define Fitness. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Combined\-Continue} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont)\label{classeo_combined_continue_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor, make sure that at least on continuator is present. \item\end{CompactList}\item
|
||||
{\bf eo\-Combined\-Continue} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont1, {\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont2)\label{classeo_combined_continue_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor - for historical reasons ... should disspear some day. \item\end{CompactList}\item
|
||||
void {\bf add} ({\bf eo\-Continue}$<$ {\bf EOT} $>$ \&\_\-cont)\label{classeo_combined_continue_a2}
|
||||
|
||||
\item
|
||||
void {\bf remove\-Last} (void)\label{classeo_combined_continue_a3}
|
||||
|
||||
\item
|
||||
virtual bool {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_combined_continue_a4}
|
||||
|
||||
\begin{CompactList}\small\item\em Returns false when one of the embedded continuators say so (logical and). \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_combined_continue_a5}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Continue}$<$ {\bf EOT} $>$ $\ast$ $>$ {\bf continuators}\label{classeo_combined_continue_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Combined\-Continue$<$ EOT $>$}
|
||||
|
||||
Combined continuators - logical AND: Continues until one of the embedded continuators says halt!
|
||||
|
||||
20/11/00 MS: Changed the 2-continuator construct to a std::vector$<$eo\-Continue$<$EOT$>$ $>$ to be consistent with other Combined constructs and allow to easily handle more than 2 continuators
|
||||
|
||||
02/2003 Ram\'{o}n Casero Ca\~{n}as - added the remove\-Last() method
|
||||
|
||||
|
||||
|
||||
Definition at line 42 of file eo\-Combined\-Continue.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Combined\-Continue.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_combined_init.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_combined_init.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 199.005
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 2.5125 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCombinedInit< EOT >) cw
|
||||
(eoInit< EOT >) cw
|
||||
(eoUF< EOT &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< EOT &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCombinedInit< EOT >) 0.5 0 box
|
||||
(eoInit< EOT >) 0.5 1 box
|
||||
(eoUF< EOT &, void >) 0.5 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< EOT &, void >) 1 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
69
trunk/paradiseo-eo/doc/latex/classeo_combined_init.tex
Normal file
69
trunk/paradiseo-eo/doc/latex/classeo_combined_init.tex
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
\section{eo\-Combined\-Init$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_combined_init}\index{eoCombinedInit@{eoCombinedInit}}
|
||||
Combined INIT: a proportional recombination of {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} objects.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Combined\-Init.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Combined\-Init$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=4cm]{classeo_combined_init}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Combined\-Init} ({\bf eo\-Init}$<$ {\bf EOT} $>$ \&\_\-init, double \_\-rate)\label{classeo_combined_init_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor, make sure that at least one {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} is present. \item\end{CompactList}\item
|
||||
void {\bf add} ({\bf eo\-Init}$<$ {\bf EOT} $>$ \&\_\-init, double \_\-rate, bool \_\-verbose=false)\label{classeo_combined_init_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The usual method to add objects to the combination note the \_\-verbose parameter, that allows to print what's inside the combination with scaled rates. \item\end{CompactList}\item
|
||||
virtual void {\bf print\-On} (std::ostream \&\_\-os)\label{classeo_combined_init_a2}
|
||||
|
||||
\begin{CompactList}\small\item\em outputs the operators and percentages \item\end{CompactList}\item
|
||||
virtual void {\bf operator()} ({\bf EOT} \&\_\-eo)\label{classeo_combined_init_a3}
|
||||
|
||||
\begin{CompactList}\small\item\em Performs the init: chooses among all initializers using roulette wheel on the rates. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} (void) const
|
||||
\begin{CompactList}\small\item\em class\-Name: Mandatory because of eo\-Combined\-Init. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
std::vector$<$ {\bf eo\-Init}$<$ {\bf EOT} $>$ $\ast$ $>$ {\bf initializers}\label{classeo_combined_init_r0}
|
||||
|
||||
\item
|
||||
std::vector$<$ double $>$ {\bf rates}\label{classeo_combined_init_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Combined\-Init$<$ EOT $>$}
|
||||
|
||||
Combined INIT: a proportional recombination of {\bf eo\-Init}{\rm (p.\,\pageref{classeo_init})} objects.
|
||||
|
||||
|
||||
|
||||
Definition at line 35 of file eo\-Combined\-Init.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoCombinedInit@{eo\-Combined\-Init}!className@{className}}
|
||||
\index{className@{className}!eoCombinedInit@{eo\-Combined\-Init}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class EOT$>$ virtual std::string {\bf eo\-Combined\-Init}$<$ {\bf EOT} $>$::class\-Name (void) const\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_combined_init_a4}
|
||||
|
||||
|
||||
class\-Name: Mandatory because of eo\-Combined\-Init.
|
||||
|
||||
SHould be pure virtual, but then we should go over the whole code to write the method for all derived classes ... MS 16/7/04
|
||||
|
||||
Reimplemented from {\bf eo\-Init$<$ EOT $>$} {\rm (p.\,\pageref{classeo_init_a0})}.
|
||||
|
||||
Definition at line 81 of file eo\-Combined\-Init.h.
|
||||
|
||||
Referenced by eo\-Combined\-Init$<$ EOT $>$::print\-On().
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Combined\-Init.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_comma_replacement.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_comma_replacement.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 134.409
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.72 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 5 def
|
||||
/cols 2 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCommaReplacement< EOT >) cw
|
||||
(eoMergeReduce< EOT >) cw
|
||||
(eoReplacement< EOT >) cw
|
||||
(eoBF< eoPop< EOT > &, eoPop< EOT > &, void >) cw
|
||||
(eoFunctorBase) cw
|
||||
(binary_function< eoPop< EOT > &, eoPop< EOT > &, void >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCommaReplacement< EOT >) 0.5 0 box
|
||||
(eoMergeReduce< EOT >) 0.5 1 box
|
||||
(eoReplacement< EOT >) 0.5 2 box
|
||||
(eoBF< eoPop< EOT > &, eoPop< EOT > &, void >) 0.5 3 box
|
||||
(eoFunctorBase) 0 4 box
|
||||
(binary_function< eoPop< EOT > &, eoPop< EOT > &, void >) 1 4 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
0 0.5 3 out
|
||||
solid
|
||||
0 1 4 conn
|
||||
solid
|
||||
1 0 4 in
|
||||
solid
|
||||
1 1 4 in
|
||||
36
trunk/paradiseo-eo/doc/latex/classeo_comma_replacement.tex
Normal file
36
trunk/paradiseo-eo/doc/latex/classeo_comma_replacement.tex
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
\section{eo\-Comma\-Replacement$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_comma_replacement}\index{eoCommaReplacement@{eoCommaReplacement}}
|
||||
ES type of replacement strategy: ignore parents, truncate offspring.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Merge\-Reduce.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Comma\-Replacement$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.76344cm]{classeo_comma_replacement}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-No\-Elitism}$<$ {\bf EOT} $>$ {\bf no\_\-elite}\label{classeo_comma_replacement_r0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Truncate}$<$ {\bf EOT} $>$ {\bf truncate}\label{classeo_comma_replacement_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Comma\-Replacement$<$ EOT $>$}
|
||||
|
||||
ES type of replacement strategy: ignore parents, truncate offspring.
|
||||
|
||||
|
||||
|
||||
Definition at line 87 of file eo\-Merge\-Reduce.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Merge\-Reduce.h\end{CompactItemize}
|
||||
257
trunk/paradiseo-eo/doc/latex/classeo_continue.eps
Normal file
257
trunk/paradiseo-eo/doc/latex/classeo_continue.eps
Normal file
|
|
@ -0,0 +1,257 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 185.811
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 2.69091 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 11 def
|
||||
/cols 4 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoContinue< EOT >) cw
|
||||
(eoUF< const eoPop< EOT > &, bool >) cw
|
||||
(eoPersistent) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, bool >) cw
|
||||
(eoPrintable) cw
|
||||
(eoCheckPoint< EOT >) cw
|
||||
(eoCombinedContinue< EOT >) cw
|
||||
(eoCtrlCContinue< EOT >) cw
|
||||
(eoEvalContinue< EOT >) cw
|
||||
(eoFitContinue< EOT >) cw
|
||||
(eoGenContinue< EOT >) cw
|
||||
(eoPeriodicContinue< EOT >) cw
|
||||
(eoSteadyFitContinue< EOT >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoContinue< EOT >) 1.25 8 box
|
||||
(eoUF< const eoPop< EOT > &, bool >) 0.5 9 box
|
||||
(eoPersistent) 2 9 box
|
||||
(eoFunctorBase) 0 10 box
|
||||
(unary_function< const eoPop< EOT > &, bool >) 1 10 box
|
||||
(eoPrintable) 2 10 box
|
||||
(eoCheckPoint< EOT >) 2.25 7 box
|
||||
(eoCombinedContinue< EOT >) 2.25 6 box
|
||||
(eoCtrlCContinue< EOT >) 2.25 5 box
|
||||
(eoEvalContinue< EOT >) 2.25 4 box
|
||||
(eoFitContinue< EOT >) 2.25 3 box
|
||||
(eoGenContinue< EOT >) 2.25 2 box
|
||||
(eoPeriodicContinue< EOT >) 2.25 1 box
|
||||
(eoSteadyFitContinue< EOT >) 2.25 0 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1.25 8 out
|
||||
solid
|
||||
0.5 2 9 conn
|
||||
solid
|
||||
1 0.5 9 in
|
||||
solid
|
||||
0 0.5 9 out
|
||||
solid
|
||||
0 1 10 conn
|
||||
solid
|
||||
1 2 9 in
|
||||
solid
|
||||
0 2 9 out
|
||||
solid
|
||||
1 0 10 in
|
||||
solid
|
||||
1 1 10 in
|
||||
solid
|
||||
1 2 10 in
|
||||
solid
|
||||
1 1.25 7.25 out
|
||||
solid
|
||||
0 1.25 7.5 hedge
|
||||
solid
|
||||
0 1.25 6.5 hedge
|
||||
solid
|
||||
0 1.25 5.5 hedge
|
||||
solid
|
||||
0 1.25 4.5 hedge
|
||||
solid
|
||||
0 1.25 3.5 hedge
|
||||
solid
|
||||
0 1.25 2.5 hedge
|
||||
solid
|
||||
0 1.25 1.5 hedge
|
||||
solid
|
||||
0 1.25 0.5 hedge
|
||||
solid
|
||||
1.25 8 0.5 vedge
|
||||
81
trunk/paradiseo-eo/doc/latex/classeo_continue.tex
Normal file
81
trunk/paradiseo-eo/doc/latex/classeo_continue.tex
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
\section{eo\-Continue$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_continue}\index{eoContinue@{eoContinue}}
|
||||
Termination condition for the genetic algorithm Takes the population as input, returns true for continue, false for termination.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Continue.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Continue$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=5.2027cm]{classeo_continue}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_continue_a0}
|
||||
|
||||
\item
|
||||
void {\bf read\-From} (std::istream \&\_\-\_\-is)
|
||||
\begin{CompactList}\small\item\em Read object. \item\end{CompactList}\item
|
||||
void {\bf print\-On} (std::ostream \&\_\-\_\-os) const
|
||||
\begin{CompactList}\small\item\em Write object. \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Continue$<$ EOT $>$}
|
||||
|
||||
Termination condition for the genetic algorithm Takes the population as input, returns true for continue, false for termination.
|
||||
|
||||
|
||||
|
||||
Definition at line 37 of file eo\-Continue.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoContinue@{eo\-Continue}!readFrom@{readFrom}}
|
||||
\index{readFrom@{readFrom}!eoContinue@{eo\-Continue}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class EOT$>$ void {\bf eo\-Continue}$<$ {\bf EOT} $>$::read\-From (std::istream \& {\em \_\-\_\-is})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_continue_a1}
|
||||
|
||||
|
||||
Read object.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-is}]A std::istream. \end{description}
|
||||
\end{Desc}
|
||||
\begin{Desc}
|
||||
\item[Exceptions:]
|
||||
\begin{description}
|
||||
\item[{\em runtime\_\-std::exception}]If a valid object can't be read. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-Persistent} {\rm (p.\,\pageref{classeo_persistent_a1})}.
|
||||
|
||||
Reimplemented in {\bf eo\-Gen\-Continue$<$ EOT $>$} {\rm (p.\,\pageref{classeo_gen_continue_a6})}.
|
||||
|
||||
Definition at line 42 of file eo\-Continue.h.\index{eoContinue@{eo\-Continue}!printOn@{printOn}}
|
||||
\index{printOn@{printOn}!eoContinue@{eo\-Continue}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class EOT$>$ void {\bf eo\-Continue}$<$ {\bf EOT} $>$::print\-On (std::ostream \& {\em \_\-\_\-os}) const\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_continue_a2}
|
||||
|
||||
|
||||
Write object.
|
||||
|
||||
It's called print\-On since it prints the object on a stream. \begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-os}]A std::ostream. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-Printable} {\rm (p.\,\pageref{classeo_printable_a1})}.
|
||||
|
||||
Reimplemented in {\bf eo\-Gen\-Continue$<$ EOT $>$} {\rm (p.\,\pageref{classeo_gen_continue_a7})}.
|
||||
|
||||
Definition at line 47 of file eo\-Continue.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Continue.h\end{CompactItemize}
|
||||
215
trunk/paradiseo-eo/doc/latex/classeo_counted_dyn_update.eps
Normal file
215
trunk/paradiseo-eo/doc/latex/classeo_counted_dyn_update.eps
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 699.301
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 0.715 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 5 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCountedDynUpdate) cw
|
||||
(eoDynUpdater) cw
|
||||
(eoUpdater) cw
|
||||
(eoF< void >) cw
|
||||
(eoFunctorBase) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCountedDynUpdate) 0 0 box
|
||||
(eoDynUpdater) 0 1 box
|
||||
(eoUpdater) 0 2 box
|
||||
(eoF< void >) 0 3 box
|
||||
(eoFunctorBase) 0 4 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
0 0 1 out
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
0 0 3 out
|
||||
solid
|
||||
1 0 4 in
|
||||
43
trunk/paradiseo-eo/doc/latex/classeo_counted_dyn_update.tex
Normal file
43
trunk/paradiseo-eo/doc/latex/classeo_counted_dyn_update.tex
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
\section{eo\-Counted\-Dyn\-Update Class Reference}
|
||||
\label{classeo_counted_dyn_update}\index{eoCountedDynUpdate@{eoCountedDynUpdate}}
|
||||
An {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} to update an {\bf eo\-Updatable}{\rm (p.\,\pageref{classeo_updatable})} object every given tic.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Updatable.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Counted\-Dyn\-Update::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=5cm]{classeo_counted_dyn_update}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Counted\-Dyn\-Update} ({\bf eo\-Updatable} \&\_\-to\-Update, unsigned \_\-interval)\label{classeo_counted_dyn_update_a0}
|
||||
|
||||
\item
|
||||
void {\bf operator()} (void)\label{classeo_counted_dyn_update_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
const unsigned {\bf interval}\label{classeo_counted_dyn_update_r0}
|
||||
|
||||
\item
|
||||
unsigned {\bf counter}\label{classeo_counted_dyn_update_r1}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
An {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} to update an {\bf eo\-Updatable}{\rm (p.\,\pageref{classeo_updatable})} object every given tic.
|
||||
|
||||
|
||||
|
||||
Definition at line 93 of file eo\-Updatable.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Updatable.h\end{CompactItemize}
|
||||
209
trunk/paradiseo-eo/doc/latex/classeo_counted_state_saver.eps
Normal file
209
trunk/paradiseo-eo/doc/latex/classeo_counted_state_saver.eps
Normal file
|
|
@ -0,0 +1,209 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 559.441
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 0.89375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 1 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCountedStateSaver) cw
|
||||
(eoUpdater) cw
|
||||
(eoF< void >) cw
|
||||
(eoFunctorBase) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCountedStateSaver) 0 0 box
|
||||
(eoUpdater) 0 1 box
|
||||
(eoF< void >) 0 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0 0 out
|
||||
solid
|
||||
1 0 1 in
|
||||
solid
|
||||
0 0 1 out
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
0 0 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
71
trunk/paradiseo-eo/doc/latex/classeo_counted_state_saver.tex
Normal file
71
trunk/paradiseo-eo/doc/latex/classeo_counted_state_saver.tex
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
\section{eo\-Counted\-State\-Saver Class Reference}
|
||||
\label{classeo_counted_state_saver}\index{eoCountedStateSaver@{eoCountedStateSaver}}
|
||||
an {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} that saves a state every given generations
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Updater.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Counted\-State\-Saver::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=4cm]{classeo_counted_state_saver}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Counted\-State\-Saver} (unsigned \_\-interval, const {\bf eo\-State} \&\_\-state, std::string \_\-prefix, bool \_\-save\-On\-Last\-Call, std::string \_\-extension=\char`\"{}sav\char`\"{}, unsigned \_\-counter=0)\label{classeo_counted_state_saver_a0}
|
||||
|
||||
\item
|
||||
{\bf eo\-Counted\-State\-Saver} (unsigned \_\-interval, const {\bf eo\-State} \&\_\-state, std::string \_\-prefix=\char`\"{}state\char`\"{}, std::string \_\-extension=\char`\"{}sav\char`\"{}, unsigned \_\-counter=0)\label{classeo_counted_state_saver_a1}
|
||||
|
||||
\item
|
||||
virtual void {\bf last\-Call} (void)\label{classeo_counted_state_saver_a2}
|
||||
|
||||
\item
|
||||
void {\bf operator()} (void)\label{classeo_counted_state_saver_a3}
|
||||
|
||||
\begin{CompactList}\small\item\em The pure virtual function that needs to be implemented by the subclass. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_counted_state_saver_a4}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
void {\bf do\-It\-Now} (void)\label{classeo_counted_state_saver_d0}
|
||||
|
||||
\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
const {\bf eo\-State} \& {\bf state}\label{classeo_counted_state_saver_r0}
|
||||
|
||||
\item
|
||||
const unsigned {\bf interval}\label{classeo_counted_state_saver_r1}
|
||||
|
||||
\item
|
||||
unsigned {\bf counter}\label{classeo_counted_state_saver_r2}
|
||||
|
||||
\item
|
||||
bool {\bf save\-On\-Last\-Call}\label{classeo_counted_state_saver_r3}
|
||||
|
||||
\item
|
||||
const std::string {\bf prefix}\label{classeo_counted_state_saver_r4}
|
||||
|
||||
\item
|
||||
const std::string {\bf extension}\label{classeo_counted_state_saver_r5}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
an {\bf eo\-Updater}{\rm (p.\,\pageref{classeo_updater})} that saves a state every given generations
|
||||
|
||||
|
||||
|
||||
Definition at line 127 of file eo\-Updater.h.
|
||||
|
||||
The documentation for this class was generated from the following files:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Updater.h\item
|
||||
eo\-Updater.cpp\end{CompactItemize}
|
||||
227
trunk/paradiseo-eo/doc/latex/classeo_ctrl_c_continue.eps
Normal file
227
trunk/paradiseo-eo/doc/latex/classeo_ctrl_c_continue.eps
Normal file
|
|
@ -0,0 +1,227 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 90.0901
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 5.55 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoCtrlCContinue< EOT >) cw
|
||||
(eoContinue< EOT >) cw
|
||||
(eoUF< const eoPop< EOT > &, bool >) cw
|
||||
(eoPersistent) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< const eoPop< EOT > &, bool >) cw
|
||||
(eoPrintable) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoCtrlCContinue< EOT >) 1.25 0 box
|
||||
(eoContinue< EOT >) 1.25 1 box
|
||||
(eoUF< const eoPop< EOT > &, bool >) 0.5 2 box
|
||||
(eoPersistent) 2 2 box
|
||||
(eoFunctorBase) 0 3 box
|
||||
(unary_function< const eoPop< EOT > &, bool >) 1 3 box
|
||||
(eoPrintable) 2 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 1.25 0 out
|
||||
solid
|
||||
1 1.25 1 in
|
||||
solid
|
||||
0 1.25 1 out
|
||||
solid
|
||||
0.5 2 2 conn
|
||||
solid
|
||||
1 0.5 2 in
|
||||
solid
|
||||
0 0.5 2 out
|
||||
solid
|
||||
0 1 3 conn
|
||||
solid
|
||||
1 2 2 in
|
||||
solid
|
||||
0 2 2 out
|
||||
solid
|
||||
1 0 3 in
|
||||
solid
|
||||
1 1 3 in
|
||||
solid
|
||||
1 2 3 in
|
||||
39
trunk/paradiseo-eo/doc/latex/classeo_ctrl_c_continue.tex
Normal file
39
trunk/paradiseo-eo/doc/latex/classeo_ctrl_c_continue.tex
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
\section{eo\-Ctrl\-CContinue$<$ EOT $>$ Class Template Reference}
|
||||
\label{classeo_ctrl_c_continue}\index{eoCtrlCContinue@{eoCtrlCContinue}}
|
||||
Ctrl C handling: this {\bf eo\-Continue}{\rm (p.\,\pageref{classeo_continue})} tells whether the user pressed Ctrl C.
|
||||
|
||||
|
||||
{\tt \#include $<$eo\-Ctrl\-CContinue.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Ctrl\-CContinue$<$ EOT $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=2.52252cm]{classeo_ctrl_c_continue}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Ctrl\-CContinue} ()\label{classeo_ctrl_c_continue_a0}
|
||||
|
||||
\begin{CompactList}\small\item\em Ctor : installs the signal handler. \item\end{CompactList}\item
|
||||
virtual bool {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-v\-EO)\label{classeo_ctrl_c_continue_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em Returns false when Ctrl C has been typed in reached. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} (void) const \label{classeo_ctrl_c_continue_a2}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class EOT$>$ class eo\-Ctrl\-CContinue$<$ EOT $>$}
|
||||
|
||||
Ctrl C handling: this {\bf eo\-Continue}{\rm (p.\,\pageref{classeo_continue})} tells whether the user pressed Ctrl C.
|
||||
|
||||
|
||||
|
||||
Definition at line 45 of file eo\-Ctrl\-CContinue.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Ctrl\-CContinue.h\end{CompactItemize}
|
||||
221
trunk/paradiseo-eo/doc/latex/classeo_det_bit_flip.eps
Normal file
221
trunk/paradiseo-eo/doc/latex/classeo_det_bit_flip.eps
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: ClassName
|
||||
%%Creator: Doxygen
|
||||
%%CreationDate: Time
|
||||
%%For:
|
||||
%Magnification: 1.00
|
||||
%%Orientation: Portrait
|
||||
%%BoundingBox: 0 0 500 125.196
|
||||
%%Pages: 0
|
||||
%%BeginSetup
|
||||
%%EndSetup
|
||||
%%EndComments
|
||||
|
||||
% ----- variables -----
|
||||
|
||||
/boxwidth 0 def
|
||||
/boxheight 40 def
|
||||
/fontheight 24 def
|
||||
/marginwidth 10 def
|
||||
/distx 20 def
|
||||
/disty 40 def
|
||||
/boundaspect 3.99375 def % aspect ratio of the BoundingBox (width/height)
|
||||
/boundx 500 def
|
||||
/boundy boundx boundaspect div def
|
||||
/xspacing 0 def
|
||||
/yspacing 0 def
|
||||
/rows 4 def
|
||||
/cols 3 def
|
||||
/scalefactor 0 def
|
||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
||||
|
||||
% ----- procedures -----
|
||||
|
||||
/dotted { [1 4] 0 setdash } def
|
||||
/dashed { [5] 0 setdash } def
|
||||
/solid { [] 0 setdash } def
|
||||
|
||||
/max % result = MAX(arg1,arg2)
|
||||
{
|
||||
/a exch def
|
||||
/b exch def
|
||||
a b gt {a} {b} ifelse
|
||||
} def
|
||||
|
||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
||||
{
|
||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
||||
} def
|
||||
|
||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
||||
{
|
||||
/str exch def
|
||||
/boxwidth boxwidth str stringwidth pop max def
|
||||
} def
|
||||
|
||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
||||
{ gsave
|
||||
2 setlinewidth
|
||||
newpath
|
||||
exch xspacing mul xoffset add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
boxwidth 0 rlineto
|
||||
0 boxheight rlineto
|
||||
boxwidth neg 0 rlineto
|
||||
0 boxheight neg rlineto
|
||||
closepath
|
||||
dup stringwidth pop neg boxwidth add 2 div
|
||||
boxheight fontheight 2 div sub 2 div
|
||||
rmoveto show stroke
|
||||
grestore
|
||||
} def
|
||||
|
||||
/mark
|
||||
{ newpath
|
||||
exch xspacing mul xoffset add boxwidth add
|
||||
exch yspacing mul
|
||||
moveto
|
||||
0 boxheight 4 div rlineto
|
||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/arrow
|
||||
{ newpath
|
||||
moveto
|
||||
3 -8 rlineto
|
||||
-6 0 rlineto
|
||||
3 8 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} def
|
||||
|
||||
/out % draws an output connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight add
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/in % draws an input connector for the block at (arg1,arg2)
|
||||
{
|
||||
newpath
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul disty 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
x y moveto
|
||||
0 disty 2 div rlineto
|
||||
stroke
|
||||
1 eq { x y disty 2 div add arrow } if
|
||||
} def
|
||||
|
||||
/hedge
|
||||
{
|
||||
exch xspacing mul xoffset add boxwidth 2 div add
|
||||
exch yspacing mul boxheight 2 div sub
|
||||
/y exch def
|
||||
/x exch def
|
||||
newpath
|
||||
x y moveto
|
||||
boxwidth 2 div distx add 0 rlineto
|
||||
stroke
|
||||
1 eq
|
||||
{ newpath x boxwidth 2 div distx add add y moveto
|
||||
-8 3 rlineto
|
||||
0 -6 rlineto
|
||||
8 3 rlineto
|
||||
closepath
|
||||
eofill
|
||||
stroke
|
||||
} if
|
||||
} def
|
||||
|
||||
/vedge
|
||||
{
|
||||
/ye exch def
|
||||
/ys exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
||||
ys yspacing mul boxheight 2 div sub
|
||||
moveto
|
||||
ye yspacing mul boxheight 2 div sub
|
||||
lineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
||||
{
|
||||
/ys exch def
|
||||
/xe exch def
|
||||
/xs exch def
|
||||
newpath
|
||||
xs xspacing mul xoffset add boxwidth 2 div add
|
||||
ys yspacing mul disty 2 div sub
|
||||
moveto
|
||||
xspacing xe xs sub mul 0
|
||||
rlineto
|
||||
stroke
|
||||
} def
|
||||
|
||||
% ----- main ------
|
||||
|
||||
boxfont setfont
|
||||
1 boundaspect scale
|
||||
(eoDetBitFlip< Chrom >) cw
|
||||
(eoMonOp< Chrom >) cw
|
||||
(eoOp< Chrom >) cw
|
||||
(eoUF< Chrom &, bool >) cw
|
||||
(eoFunctorBase) cw
|
||||
(unary_function< Chrom &, bool >) cw
|
||||
/boxwidth boxwidth marginwidth 2 mul add def
|
||||
/xspacing boxwidth distx add def
|
||||
/yspacing boxheight disty add def
|
||||
/scalefactor
|
||||
boxwidth cols mul distx cols 1 sub mul add
|
||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
||||
max def
|
||||
boundx scalefactor div boundy scalefactor div scale
|
||||
|
||||
% ----- classes -----
|
||||
|
||||
(eoDetBitFlip< Chrom >) 0.5 0 box
|
||||
(eoMonOp< Chrom >) 0.5 1 box
|
||||
(eoOp< Chrom >) 0 2 box
|
||||
(eoUF< Chrom &, bool >) 1 2 box
|
||||
(eoFunctorBase) 0.5 3 box
|
||||
(unary_function< Chrom &, bool >) 1.5 3 box
|
||||
|
||||
% ----- relations -----
|
||||
|
||||
solid
|
||||
0 0.5 0 out
|
||||
solid
|
||||
1 0.5 1 in
|
||||
solid
|
||||
0 0.5 1 out
|
||||
solid
|
||||
0 1 2 conn
|
||||
solid
|
||||
1 0 2 in
|
||||
solid
|
||||
1 1 2 in
|
||||
solid
|
||||
0 1 2 out
|
||||
solid
|
||||
0.5 1.5 3 conn
|
||||
solid
|
||||
1 0.5 3 in
|
||||
solid
|
||||
1 1.5 3 in
|
||||
79
trunk/paradiseo-eo/doc/latex/classeo_det_bit_flip.tex
Normal file
79
trunk/paradiseo-eo/doc/latex/classeo_det_bit_flip.tex
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
\section{eo\-Det\-Bit\-Flip$<$ Chrom $>$ Class Template Reference}
|
||||
\label{classeo_det_bit_flip}\index{eoDetBitFlip@{eoDetBitFlip}}
|
||||
eo\-Det\-Bit\-Flip --$>$ changes exactly k bits
|
||||
|
||||
|
||||
{\tt \#include $<$ga/eo\-Bit\-Op.h$>$}
|
||||
|
||||
Inheritance diagram for eo\-Det\-Bit\-Flip$<$ Chrom $>$::\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[height=3.50548cm]{classeo_det_bit_flip}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\subsection*{Public Member Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
{\bf eo\-Det\-Bit\-Flip} (const unsigned \&\_\-num\_\-bit=1)
|
||||
\begin{CompactList}\small\item\em (Default) Constructor. \item\end{CompactList}\item
|
||||
virtual std::string {\bf class\-Name} () const \label{classeo_det_bit_flip_a1}
|
||||
|
||||
\begin{CompactList}\small\item\em The class name. \item\end{CompactList}\item
|
||||
bool {\bf operator()} (Chrom \&chrom)
|
||||
\begin{CompactList}\small\item\em Change num\_\-bit bits. \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Private Attributes}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
unsigned {\bf num\_\-bit}\label{classeo_det_bit_flip_r0}
|
||||
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Detailed Description}
|
||||
\subsubsection*{template$<$class Chrom$>$ class eo\-Det\-Bit\-Flip$<$ Chrom $>$}
|
||||
|
||||
eo\-Det\-Bit\-Flip --$>$ changes exactly k bits
|
||||
|
||||
|
||||
|
||||
Definition at line 67 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Constructor \& Destructor Documentation}
|
||||
\index{eoDetBitFlip@{eo\-Det\-Bit\-Flip}!eoDetBitFlip@{eoDetBitFlip}}
|
||||
\index{eoDetBitFlip@{eoDetBitFlip}!eoDetBitFlip@{eo\-Det\-Bit\-Flip}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ {\bf eo\-Det\-Bit\-Flip}$<$ Chrom $>$::{\bf eo\-Det\-Bit\-Flip} (const unsigned \& {\em \_\-num\_\-bit} = {\tt 1})\hspace{0.3cm}{\tt [inline]}}\label{classeo_det_bit_flip_a0}
|
||||
|
||||
|
||||
(Default) Constructor.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em \_\-num\_\-bit}]The number of bits to change default is one - equivalent to eo\-One\-Bit\-Flip then \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Definition at line 75 of file eo\-Bit\-Op.h.
|
||||
|
||||
\subsection{Member Function Documentation}
|
||||
\index{eoDetBitFlip@{eo\-Det\-Bit\-Flip}!operator()@{operator()}}
|
||||
\index{operator()@{operator()}!eoDetBitFlip@{eo\-Det\-Bit\-Flip}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Chrom$>$ bool {\bf eo\-Det\-Bit\-Flip}$<$ Chrom $>$::operator() (Chrom \& {\em chrom})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeo_det_bit_flip_a2}
|
||||
|
||||
|
||||
Change num\_\-bit bits.
|
||||
|
||||
\begin{Desc}
|
||||
\item[Parameters:]
|
||||
\begin{description}
|
||||
\item[{\em chrom}]The cromosome which one bit is going to be changed. \end{description}
|
||||
\end{Desc}
|
||||
|
||||
|
||||
Implements {\bf eo\-UF$<$ Chrom \&, bool $>$} {\rm (p.\,\pageref{classeo_u_f_a1})}.
|
||||
|
||||
Definition at line 84 of file eo\-Bit\-Op.h.
|
||||
|
||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
||||
\item
|
||||
eo\-Bit\-Op.h\end{CompactItemize}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue