|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_FUNCTION_EPCA_H_
2 #define GENESIS_PLACEMENT_FUNCTION_EPCA_H_
56 class PlacementEdgeData;
57 class PlacementNodeData;
135 bool include_leaves =
false,
174 double epsilon = 1e-5,
175 size_t components = 0
181 #endif // include guard
Store a set of Samples with associated names.
utils::Matrix< double > epca_imbalance_matrix(SampleSet const &samples, bool include_leaves, bool normalize)
Calculate the imbalance matrix of placment mass for all Samples in a SampleSet.
Manage a set of Pqueries along with the PlacementTree where the PqueryPlacements are placed on.
std::vector< double > epca_imbalance_vector(Sample const &sample, bool normalize)
Calculate the imbalance of placement mass for each Edge of the given Sample.
Helper stucture that collects the output of epca().
utils::Matrix< double > eigenvectors
Tree CommonTree
Alias for a Tree with data types CommonNodeData and CommonEdgeData.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
utils::Matrix< double > projection
std::vector< double > eigenvalues
void normalize(Histogram &h, double total)
void epca_splitify_transform(utils::Matrix< double > &imbalance_matrix, double kappa)
Perform a component-wise transformation of the imbalance matrix used for epca().
std::vector< size_t > edge_indices
EpcaData epca(SampleSet const &samples, double kappa, double epsilon, size_t components)
Perform EdgePCA on a SampleSet.