|
libcrn
3.9.5
A document image processing library
|
Crossover functor. More...
#include <CRNGenetic.h>
Public Member Functions | |
| template<typename T , typename URNG > | |
| std::pair< std::vector< T > , std::vector< T > > | operator() (const std::vector< T > &idv1, const std::vector< T > &idv2, URNG &rng) const |
Crossover functor.
Creates two vectors from two parent vectors using complementary random strings from each one.
Definition at line 152 of file CRNGenetic.h.
|
inline |
| [in] | idv1 | first parent |
| [in] | idv2 | second parent |
| ExceptionDimension | parents do not have the same size |
| ExceptionInvalidArgument | parents are empty |
Definition at line 161 of file CRNGenetic.h.
1.8.6