pub struct WalkKernelConfig {
pub max_walk_length: usize,
pub decay_factor: f64,
pub normalize: bool,
}Expand description
Walk-based kernel configuration
Fields§
§max_walk_length: usizeMaximum walk length
decay_factor: f64Decay factor for longer walks
normalize: boolWhether to normalize
Implementations§
Source§impl WalkKernelConfig
impl WalkKernelConfig
Sourcepub fn with_max_length(self, length: usize) -> Self
pub fn with_max_length(self, length: usize) -> Self
Set maximum walk length
Sourcepub fn with_decay(self, decay: f64) -> Self
pub fn with_decay(self, decay: f64) -> Self
Set decay factor
Trait Implementations§
Source§impl Clone for WalkKernelConfig
impl Clone for WalkKernelConfig
Source§fn clone(&self) -> WalkKernelConfig
fn clone(&self) -> WalkKernelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalkKernelConfig
impl Debug for WalkKernelConfig
Source§impl Default for WalkKernelConfig
impl Default for WalkKernelConfig
Source§impl<'de> Deserialize<'de> for WalkKernelConfig
impl<'de> Deserialize<'de> for WalkKernelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WalkKernelConfig
impl PartialEq for WalkKernelConfig
Source§impl Serialize for WalkKernelConfig
impl Serialize for WalkKernelConfig
impl StructuralPartialEq for WalkKernelConfig
Auto Trait Implementations§
impl Freeze for WalkKernelConfig
impl RefUnwindSafe for WalkKernelConfig
impl Send for WalkKernelConfig
impl Sync for WalkKernelConfig
impl Unpin for WalkKernelConfig
impl UnwindSafe for WalkKernelConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more