#include <RatioBasedFamilies.h>
Public Member Functions | |
RatioBasedFamilies (vector< double > const &ratios) | |
Initialize a SpatialFamilyIDGenerator. | |
virtual shared_ptr< vector < familyid_t > > | generateIDs (SimNetwork &net, vector< SimObjectFactory * > const &families, Point3DSet const &locs) const |
Return for each location a family id. |
Implements the interface SpatialFamilyIDGenerator for merging families of neurons in one population. Each family has a assigned probabiliteis of occurence in the population. Probabilities can be given as ratios, which are then normalized such that they sum up to 1.
Definition at line 26 of file RatioBasedFamilies.h.
RatioBasedFamilies::RatioBasedFamilies | ( | vector< double > const & | ratios | ) |
shared_ptr< vector< familyid_t > > RatioBasedFamilies::generateIDs | ( | SimNetwork & | net, | |
vector< SimObjectFactory * > const & | families, | |||
Point3DSet const & | locs | |||
) | const [virtual] |
Return for each location a family id.
Reimplemented from SpatialFamilyIDGenerator.
Definition at line 40 of file RatioBasedFamilies.cpp.
References RandomDistributionBoostImplementation< boost_dist >::get(), SimNetwork::getMainConstructRNGEngine(), and Point3DSet::size().