pub struct PprConfig {
pub damping: f32,
pub max_iter: u32,
pub eps: f32,
}Expand description
PPR configuration. Split out from the runner so CLI / HTTP / MCP DTOs can carry just these three numbers.
Fields§
§damping: f32Damping factor d in (1 - d) * p + d * M^T r. Default
DEFAULT_DAMPING.
max_iter: u32Maximum power-iteration steps. Default DEFAULT_MAX_ITER.
eps: f32L1-delta convergence threshold. Stop when
|| r_{t+1} - r_t ||_1 < eps. Default DEFAULT_EPS.
Trait Implementations§
impl Copy for PprConfig
impl StructuralPartialEq for PprConfig
Auto Trait Implementations§
impl Freeze for PprConfig
impl RefUnwindSafe for PprConfig
impl Send for PprConfig
impl Sync for PprConfig
impl Unpin for PprConfig
impl UnsafeUnpin for PprConfig
impl UnwindSafe for PprConfig
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