本文整理汇总了Java中beast.core.CalculationNode类的典型用法代码示例。如果您正苦于以下问题:Java CalculationNode类的具体用法?Java CalculationNode怎么用?Java CalculationNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CalculationNode类属于beast.core包,在下文中一共展示了CalculationNode类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: requiresRecalculation
import beast.core.CalculationNode; //导入依赖的package包/类
@Override
protected boolean requiresRecalculation() {
return ((CalculationNode) dynamicsInput.get()).isDirtyCalculation()
|| ancestralNeInput.get().isDirty(0)
|| collapsTimeInput.get().isDirty(0)
|| super.requiresRecalculation();
}
示例2: requiresRecalculation
import beast.core.CalculationNode; //导入依赖的package包/类
@Override
protected boolean requiresRecalculation() {
return ((CalculationNode) dynamicsInput.get()).isDirtyCalculation() || super.requiresRecalculation();
}
示例3: requiresRecalculation
import beast.core.CalculationNode; //导入依赖的package包/类
@Override
protected boolean requiresRecalculation() {
return ((CalculationNode) popSizeInput.get()).isDirtyCalculation() || super.requiresRecalculation();
}
示例4: requiresRecalculation
import beast.core.CalculationNode; //导入依赖的package包/类
@Override
protected boolean requiresRecalculation() {
return ((CalculationNode) popParameterInput.get()).isDirtyCalculation() || scaleFactorInput.get().somethingIsDirty();
}
示例5: requiresRecalculation
import beast.core.CalculationNode; //导入依赖的package包/类
/**
* check state for changed variables and update temp results if necessary *
*/
@Override
protected boolean requiresRecalculation() {
hasDirt = Tree.IS_CLEAN;
double[] categoryRates = m_siteModel.getCategoryRates(null);
if (constantPattern != null) {
double [] tmp = new double [categoryRates.length - 1];
for (int k = 0; k < invariantCategory; k++) {
tmp[k] = categoryRates[k];
}
for (int k = invariantCategory + 1; k < categoryRates.length; k++) {
tmp[k-1] = categoryRates[k];
}
categoryRates = tmp;
}
for (int i = 0; i < categoryRates.length; i++) {
if (categoryRates[i] != currentCategoryRates[i]) {
updateSiteModel = true;
break;
}
}
//updateSiteModel |= m_siteModel.isDirtyCalculation();
if (substitutionModel instanceof CalculationNode) {
updateSubstitutionModel |= ((CalculationNode) substitutionModel).isDirtyCalculation();
}
if (dataInput.get().isDirtyCalculation()) {
hasDirt = Tree.IS_FILTHY;
return true;
}
if (m_siteModel.isDirtyCalculation()) {
hasDirt = Tree.IS_DIRTY;
return true;
}
if (branchRateModel != null && branchRateModel.isDirtyCalculation()) {
//m_nHasDirt = Tree.IS_FILTHY;
return true;
}
return treeInput.get().somethingIsDirty();
}