pub struct SpectralPhiEngine { /* private fields */ }Expand description
Spectral Φ approximation using the Fiedler vector.
Computes the second-smallest eigenvalue of the Laplacian of the TPM’s mutual information graph. The Fiedler vector gives an approximately optimal bipartition in O(n² log n) time.
Implementations§
Trait Implementations§
Source§impl Default for SpectralPhiEngine
impl Default for SpectralPhiEngine
Source§impl PhiEngine for SpectralPhiEngine
impl PhiEngine for SpectralPhiEngine
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 SpectralPhiEngine
impl RefUnwindSafe for SpectralPhiEngine
impl Send for SpectralPhiEngine
impl Sync for SpectralPhiEngine
impl Unpin for SpectralPhiEngine
impl UnsafeUnpin for SpectralPhiEngine
impl UnwindSafe for SpectralPhiEngine
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