mercurial.branches.branch module

Reality branch representation (MERCURIAL B).

class mercurial.branches.branch.RealityBranch(branch_id: int, label: str = '', level: int = 7)[source]

Bases: object

A single reality branch B_a.

Methods

similarity_to(other)

Branch similarity σ(B_a, B_b) (Definition 5.3).

compute_entropy

compute_orthogonality

set_global_pattern

set_state_vector

__init__(branch_id: int, label: str = '', level: int = 7)[source]
Parameters:
branch_idint

Unique identifier.

labelstr

Descriptive name.

levelint

LADDER hierarchical level (0-18) where this branch primarily operates. Default 7 (macroscopic material patterns).

compute_entropy() float[source]
compute_orthogonality(other: RealityBranch) float[source]
set_global_pattern(pattern: Pattern)[source]
set_state_vector(state_vector: StateVector)[source]
similarity_to(other: RealityBranch) float[source]

Branch similarity σ(B_a, B_b) (Definition 5.3).