TycheExpectedOccupancyClockModel

public class tyche.evolution.branchratemodel.TycheExpectedOccupancyClockModel extends tyche.evolution.branchratemodel.AbstractTycheTypeLinkedClockModel

Defines a type-linked rate for each branch in the beast.tree, where the branch rate is calculated from the expected occupancy in each type.

public boolean isExpectedOccupancy()

Returns true as this is an expected occupancy model.

Returns:

true

public double getBranchRate(Node node)

Calculates a type-linked rate for this branch, where the branch rate is calculated from the expected occupancy in each type.

Parameters:

node – the current node (child node of the branch)

Returns:

the type-linked rate for this branch