aspartik.b3.clocks

class Clock:

class Clock(Protocol):
    """
    A clock model

    Currently this class only supports strict clock models.
    """

    def get_rate(self) -> float:
        """
        The uniform clock rate for all edges in the tree
        """
        ...
#

A clock model

Currently this class only supports strict clock models.

def get_rate(self) -> float

    def get_rate(self) -> float:
        """
        The uniform clock rate for all edges in the tree
        """
        ...
#

The uniform clock rate for all edges in the tree

class StrictClock:

@dataclass(slots=True)
class StrictClock(Clock):
    """Clock model which just returns a parameter"""

    mu: SupportsFloat

    def get_rate(self) -> float:
        return float(self.mu)
#

Clock model which just returns a parameter

mu: typing.SupportsFloat

#

def get_rate(self) -> float

    def get_rate(self) -> float:
        return float(self.mu)
#

The uniform clock rate for all edges in the tree