|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.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 IntervalList
public int getIntervalCount()
IntervalList
getIntervalCount
in interface IntervalList
public double getInterval(int i)
IntervalList
getInterval
in interface IntervalList
public int getLineageCount(int i)
IntervalList
getLineageCount
in interface IntervalList
public int getCoalescentEvents(int i)
IntervalList
getCoalescentEvents
in interface IntervalList
public IntervalList.IntervalType getIntervalType(int i)
IntervalList
getIntervalType
in interface IntervalList
public double getTotalDuration()
IntervalList
getTotalDuration
in interface IntervalList
public boolean isBinaryCoalescent()
IntervalList
isBinaryCoalescent
in interface IntervalList
public boolean isCoalescentOnly()
IntervalList
isCoalescentOnly
in interface IntervalList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |