Class DemographicFunction.Utils
java.lang.Object
jebl.evolution.coalescent.DemographicFunction.Utils
- Enclosing interface:
DemographicFunction
- Version:
- $Id: DemographicFunction.java 849 2007-12-06 00:10:14Z twobeers $
- Author:
- Andrew Rambaut, Alexei Drummond, Korbinian Strimmer
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidtestConsistency(DemographicFunction demographicFunction, int steps, double maxTime) This function tests the consistency of the getIntensity and getInverseIntensity methods of this demographic model.
-
Method Details
-
testConsistency
public static void testConsistency(DemographicFunction demographicFunction, int steps, double maxTime) This function tests the consistency of the getIntensity and getInverseIntensity methods of this demographic model. If the model is inconsistent then a RuntimeException will be thrown.- Parameters:
demographicFunction- the demographic model to test.steps- the number of steps between 0.0 and maxTime to test.maxTime- the maximum time to test.
-