|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.evolution.coalescent.Intervals
public class Intervals
A concrete class for a set of coalescent intevals.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jebl.evolution.coalescent.IntervalList |
|---|
IntervalList.IntervalType, IntervalList.Utils |
| Constructor Summary | |
|---|---|
Intervals(int maxEventCount)
|
|
Intervals(RootedTree tree)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Intervals(RootedTree tree)
public Intervals(int maxEventCount)
| Method Detail |
|---|
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()
IntervalList
getSampleCount in interface IntervalListpublic int getIntervalCount()
IntervalList
getIntervalCount in interface IntervalListpublic double getInterval(int i)
IntervalList
getInterval in interface IntervalListpublic int getLineageCount(int i)
IntervalList
getLineageCount in interface IntervalListpublic int getCoalescentEvents(int i)
IntervalList
getCoalescentEvents in interface IntervalListpublic IntervalList.IntervalType getIntervalType(int i)
IntervalList
getIntervalType in interface IntervalListpublic double getTotalDuration()
IntervalList
getTotalDuration in interface IntervalListpublic boolean isBinaryCoalescent()
IntervalList
isBinaryCoalescent in interface IntervalListpublic boolean isCoalescentOnly()
IntervalList
isCoalescentOnly in interface IntervalList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||