Search in sources :

Example 6 with LogColumn

use of dr.inference.loggers.LogColumn in project beast-mcmc by beast-dev.

the class TreeTraitLogger method getColumns.

public LogColumn[] getColumns() {
    if (loggableTreeTraits.size() == 0) {
        return null;
    }
    LogColumn[] columns = new LogColumn[loggableTreeTraits.size()];
    for (int i = 0; i < loggableTreeTraits.size(); i++) {
        final TreeTrait trait = loggableTreeTraits.get(i);
        columns[i] = new LogColumn.Abstract(trait.getTraitName()) {

            @Override
            protected String getFormattedValue() {
                return trait.getTraitString(tree, null);
            }
        };
    }
    return columns;
}
Also used : LogColumn(dr.inference.loggers.LogColumn) TreeTrait(dr.evolution.tree.TreeTrait)

Aggregations

LogColumn (dr.inference.loggers.LogColumn)6 TreeTrait (dr.evolution.tree.TreeTrait)1 AbstractPeriodPriorDistribution (dr.evomodel.epidemiology.casetocase.periodpriors.AbstractPeriodPriorDistribution)1 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 LinkedList (java.util.LinkedList)1