Search in sources :

Example 1 with HierarchicalPhylogeneticModel

use of dr.app.beauti.components.hpm.HierarchicalPhylogeneticModel in project beast-mcmc by beast-dev.

the class HierarchicalPriorDialog method addHPM.

public void addHPM(java.util.List<Parameter> parameterList) {
    HierarchicalModelComponentOptions comp = (HierarchicalModelComponentOptions) options.getComponentOptions(HierarchicalModelComponentOptions.class);
    HierarchicalPhylogeneticModel hpm = comp.addHPM(nameField.getText(), parameterList, parameterList.get(0).priorType);
    hpm.getConditionalParameterList().get(0).mean = hpmMeanMean;
    hpm.getConditionalParameterList().get(0).stdev = hpmMeanStDev;
    hpm.getConditionalParameterList().get(0).setInitial(hpmMeanInitial);
    hpm.getConditionalParameterList().get(1).shape = hpmPrecShape;
    hpm.getConditionalParameterList().get(1).scale = hpmPrecScale;
    hpm.getConditionalParameterList().get(1).setInitial(hpmPrecInitial);
}
Also used : HierarchicalPhylogeneticModel(dr.app.beauti.components.hpm.HierarchicalPhylogeneticModel) HierarchicalModelComponentOptions(dr.app.beauti.components.hpm.HierarchicalModelComponentOptions)

Aggregations

HierarchicalModelComponentOptions (dr.app.beauti.components.hpm.HierarchicalModelComponentOptions)1 HierarchicalPhylogeneticModel (dr.app.beauti.components.hpm.HierarchicalPhylogeneticModel)1