public class Intervals extends java.lang.Object implements IntervalList
IntervalList.IntervalType, IntervalList.Utils| Constructor and Description |
|---|
Intervals(int maxEventCount) |
Intervals(RootedTree tree) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoalescentEvent(double time) |
void |
addMigrationEvent(double time,
int destination) |
void |
addNothingEvent(double time) |
void |
addSampleEvent(double time) |
void |
copyIntervals(Intervals source) |
int |
getCoalescentEvents(int i)
Returns the number coalescent events in an interval
|
double |
getInterval(int i)
Gets an interval.
|
int |
getIntervalCount()
get number of intervals
|
IntervalList.IntervalType |
getIntervalType(int i)
Returns the type of interval observed.
|
int |
getLineageCount(int i)
Returns the number of uncoalesced lineages within this interval.
|
int |
getSampleCount()
get the total number of sampling events.
|
double |
getTotalDuration()
get the total duration of these intervals.
|
boolean |
isBinaryCoalescent()
Checks whether this set of coalescent intervals is fully resolved
(i.e.
|
boolean |
isCoalescentOnly()
Checks whether this set of coalescent intervals coalescent only
(i.e.
|
void |
resetEvents() |
public Intervals(RootedTree tree)
public Intervals(int maxEventCount)
public void copyIntervals(Intervals source)
public void resetEvents()
public void addSampleEvent(double time)
public void addCoalescentEvent(double time)
public void addMigrationEvent(double time,
int destination)
public void addNothingEvent(double time)
public int getSampleCount()
IntervalListgetSampleCount in interface IntervalListpublic int getIntervalCount()
IntervalListgetIntervalCount in interface IntervalListpublic double getInterval(int i)
IntervalListgetInterval in interface IntervalListpublic int getLineageCount(int i)
IntervalListgetLineageCount in interface IntervalListpublic int getCoalescentEvents(int i)
IntervalListgetCoalescentEvents in interface IntervalListpublic IntervalList.IntervalType getIntervalType(int i)
IntervalListgetIntervalType in interface IntervalListpublic double getTotalDuration()
IntervalListgetTotalDuration in interface IntervalListpublic boolean isBinaryCoalescent()
IntervalListisBinaryCoalescent in interface IntervalListpublic boolean isCoalescentOnly()
IntervalListisCoalescentOnly in interface IntervalListhttp://code.google.com/p/jebl2/