1 #ifndef GENESIS_PLACEMENT_FUNCTION_SAMPLE_SET_H_
2 #define GENESIS_PLACEMENT_FUNCTION_SAMPLE_SET_H_
51 Sample *
find_sample( SampleSet & sample_set, std::string
const& name );
56 Sample
const*
find_sample( SampleSet
const& sample_set, std::string
const& name );
65 Sample
merge_all( SampleSet
const& sample_set );
93 tree::TreeSet
tree_set( SampleSet
const& sample_set );
120 std::ostream&
operator << ( std::ostream& out, SampleSet
const& sample_set );
125 #endif // include guard
size_t total_pquery_count(SampleSet const &sample_set)
Return the total number of Pqueries in the Samples of the SampleSet.
Sample merge_all(SampleSet const &sample_set)
Returns a Sample where all Samples of a SampleSet have been merged into.
bool all_identical_trees(SampleSet const &sample_set)
Returns true iff all Trees of the Samples in the set are identical.
void adjust_to_average_branch_lengths(SampleSet &sample_set)
Set the branch lengths of all Samples in the sample_set to the respecitve average branch length of th...
tree::Tree average_branch_length_tree(SampleSet const &sample_set)
Return the Tree that has edges with the average branch length of the respective edges of the Trees in...
void adjust_branch_lengths(Sample &sample, tree::Tree const &source)
Take the branch lengths of the source Tree and use them as the new branch lengths of the sample...
Sample * find_sample(SampleSet &sample_set, std::string const &name)
Get the first Sample in a SampleSet that has a given name, or nullptr if not found.
tree::TreeSet tree_set(SampleSet const &sample_set)
Return a TreeSet containing all the trees of the SampleSet.
std::ostream & operator<<(std::ostream &out, Sample const &smp)
Print a table of all Pqueries with their Placements and Names to the stream.