-(** supporting functions for estimating the parameters of phylogenetic models by expectation-maximization (EM) *)
+(** supporting functions for estimating the parameters of phylogenetic models by
+expectation-maximization (EM) *)
(** {1 E-step} *)
-(** sufficient statistics for the E-step, composed of estimates of how many times each character-character substitution occurred on each branch of the tree (summed over all sites)
-*)
+(** sufficient statistics for the E-step, composed of estimates of how many times each
+character-character substitution occurred on each branch of the tree (summed over all sites) *)
-(** compute the E-step statistics for one site, given the leaves (as would be given to {{:PhyloModel}PhyloModel.prepare_lik}). Update the given [sufficient_statistics] and return the probability of the leaves under the model. This should be called for each site to collect the statistics for the whole alignment. *)
+(** compute the E-step statistics for one site, given the leaves (as would be given to
+{{:PhyloModel}PhyloModel.prepare_lik}). Update the given [sufficient_statistics] and return the
+probability of the leaves under the model. This should be called for each site to collect the
-(** any entry in the sufficient statistics less than [tol] is set to zero. useful if e.g. planning to compress the sufficient statistics for transport between compute nodes *)
+(** any entry in the sufficient statistics less than [tol] is set to zero. useful if e.g. planning
+to compress the sufficient statistics for transport between compute nodes *)
valclean_sufficient_statistics : ?tol:float -> sufficient_statistics -> unit
(** {1 M-step} *)
-(** expected log-likelihood of the model, where the expectation is over the soft assignment of the ancestral characters represented by the sufficient statistics of the E-step. (objective function of the M-step, sometimes called the Q function)
-*)
+(** expected log-likelihood of the model, where the expectation is over the soft assignment of the
+ancestral characters represented by the sufficient statistics of the E-step. (objective function of
0 comments on commit
2b02c62