Dear Andrew,
Thank you for you kindly help and the link below does help me a lot. But there is still details I'm not clear since the program depends on several other packages that I failed to search in the same website. They are listed as the following:
import dr.inference.trace.LogFileTraces;
import dr.inference.trace.TraceDistribution;
import dr.inference.trace.TraceException;
import dr.inference.trace.TraceList;
import dr.stats.Variate;
import jebl.evolution.coalescent.IntervalList;
import jebl.evolution.coalescent.Intervals;
import jebl.evolution.io.ImportException;
import jebl.evolution.io.NewickImporter;
import jebl.evolution.io.NexusImporter;
import jebl.evolution.io.TreeImporter;
import jebl.evolution.trees.RootedTree;
I wrote a program which has the same basic algorithm with the one in the link you supplied but cannot get the same results as in Tracer. Also, I want to make comparions with other methods. So, I hope to make the details clear. Could you please give me further help? Thank you very much!
Best,
Zheng