pub struct StochasticPhiEngine { /* private fields */ }Expand description
Stochastic Φ approximation via random partition sampling.
Samples random bipartitions and tracks the minimum information loss. Runs in O(k · n²) where k is the sample count.
Implementations§
Trait Implementations§
Source§impl PhiEngine for StochasticPhiEngine
impl PhiEngine for StochasticPhiEngine
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 StochasticPhiEngine
impl RefUnwindSafe for StochasticPhiEngine
impl Send for StochasticPhiEngine
impl Sync for StochasticPhiEngine
impl Unpin for StochasticPhiEngine
impl UnsafeUnpin for StochasticPhiEngine
impl UnwindSafe for StochasticPhiEngine
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