1 #ifndef GENESIS_PLACEMENT_SIMULATOR_FUNCTIONS_H_ 2 #define GENESIS_PLACEMENT_SIMULATOR_FUNCTIONS_H_ 47 class SimulatorEdgeDistribution;
48 class SimulatorExtraPlacementDistribution;
49 class SimulatorLikeWeightRatioDistribution;
50 class SimulatorPendantLengthDistribution;
51 class SimulatorProximalLengthDistribution;
57 std::ostream&
operator <<( std::ostream& out, SimulatorEdgeDistribution
const& distrib );
58 std::ostream&
operator <<( std::ostream& out, SimulatorExtraPlacementDistribution
const& distrib );
59 std::ostream&
operator <<( std::ostream& out, SimulatorLikeWeightRatioDistribution
const& distrib );
68 void set_random_weights( Sample
const& sample, SimulatorEdgeDistribution& edge_distrib );
71 void set_random_edges( Sample
const& sample, SimulatorEdgeDistribution& edge_distrib );
76 SimulatorEdgeDistribution& edge_distrib
81 std::vector<double>
const& depth_weights,
82 SimulatorEdgeDistribution& edge_distrib
87 SimulatorEdgeDistribution& edge_distrib
93 SimulatorEdgeDistribution& edge_distrib
103 Sample
const& sample,
104 SimulatorExtraPlacementDistribution& p_distib
108 Sample
const& sample,
109 SimulatorExtraPlacementDistribution& p_distib
117 Sample
const& sample,
118 SimulatorLikeWeightRatioDistribution& lwr_distib,
119 size_t number_of_intervals = 10
125 #endif // include guard void set_depths_distributed_weights(Sample const &sample, SimulatorEdgeDistribution &edge_distrib)
Set the weights of an SimulatorEdgeDistribution so that they follow the depth distribution of the edg...
void set_random_edges(Sample const &sample, SimulatorEdgeDistribution &edge_distrib)
Set the weights of a SimulatorEdgeDistribution randomly to either 0.0 or 1.0, so that a random subset...
size_t set_random_subtree_weights(Sample const &sample, SimulatorEdgeDistribution &edge_distrib)
Sets the weights of an SimulatorEdgeDistribution to 1.0 for a randomly chosen subtree, all others to 0.0.
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
void set_uniform_weights(Sample const &sample, SimulatorEdgeDistribution &edge_distrib)
Sets the weights of an SimulatorEdgeDistribution to 1.0 for all edges, so that each edge has the same...
void learn_placement_path_length_weights(Sample const &sample, SimulatorExtraPlacementDistribution &p_distib)
size_t edge_count(Tree const &tree)
Return the number of Edges of a Tree. Same as Tree::edge_count().
void learn_like_weight_ratio_distribution(Sample const &sample, SimulatorLikeWeightRatioDistribution &lwr_distib, size_t number_of_intervals)
void set_random_weights(Sample const &sample, SimulatorEdgeDistribution &edge_distrib)
Set the weights of an SimulatorEdgeDistribution for the edges randomly to a value between 0...
void learn_per_edge_weights(Sample const &sample, SimulatorEdgeDistribution &edge_distrib)
Sets the weights of an SimulatorEdgeDistributionso that they follow the same distribution of placemen...
void learn_placement_number_weights(Sample const &sample, SimulatorExtraPlacementDistribution &p_distib)
void set_subtree_weights(Sample const &sample, size_t link_index, SimulatorEdgeDistribution &edge_distrib)
Set the weights of a subtree to 1.0 and all other weights to 0.0.
std::ostream & operator<<(std::ostream &out, Sample const &smp)
Print a table of all Pqueries with their Placements and Names to the stream.