Return the medoid from a MCMC output
medTTree(record, burnin = 0.5)
record
Output from inferTTree function
burnin
Proportion of the MCMC output to be discarded as burnin
The index of the medoid