pub struct HierarchicalPhiEngine {
pub exact_threshold: usize,
}Expand description
Hierarchical Φ approximation for large systems.
Recursively bisects the system into subsystems, computes Φ for each, then estimates global Φ as the minimum sub-system Φ. This is a conservative lower bound (global Φ ≤ min(sub-Φ)).
Works for arbitrarily large systems by recursively halving until subsystems are small enough for exact computation.
Complexity: O(n² log n) — log(n) levels × n² per level.
Fields§
§exact_threshold: usizeMaximum subsystem size for exact computation.
Implementations§
Trait Implementations§
Source§impl Default for HierarchicalPhiEngine
impl Default for HierarchicalPhiEngine
Source§impl PhiEngine for HierarchicalPhiEngine
impl PhiEngine for HierarchicalPhiEngine
Source§fn compute_phi(
&self,
tpm: &TransitionMatrix,
state: Option<usize>,
budget: &ComputeBudget,
) -> Result<PhiResult, ConsciousnessError>
fn compute_phi( &self, tpm: &TransitionMatrix, state: Option<usize>, budget: &ComputeBudget, ) -> Result<PhiResult, ConsciousnessError>
Compute Φ for the given transition probability matrix. Read more
Source§fn algorithm(&self) -> PhiAlgorithm
fn algorithm(&self) -> PhiAlgorithm
Return the algorithm identifier.
Source§fn estimate_cost(&self, n: usize) -> u64
fn estimate_cost(&self, n: usize) -> u64
Estimate computational cost without performing the computation.
Auto Trait Implementations§
impl Freeze for HierarchicalPhiEngine
impl RefUnwindSafe for HierarchicalPhiEngine
impl Send for HierarchicalPhiEngine
impl Sync for HierarchicalPhiEngine
impl Unpin for HierarchicalPhiEngine
impl UnsafeUnpin for HierarchicalPhiEngine
impl UnwindSafe for HierarchicalPhiEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more