pub struct PathQualityWeights {
pub alpha: f32,
pub beta: f32,
pub gamma: f32,
pub delta: f32,
}Expand description
Weights for path quality components.
Default weights from TPO empirical analysis:
- α (linearity): 0.25 - Smooth depth progression
- β (terminal): 0.30 - How path ends (conclusions matter more)
- γ (coherence): 0.25 - Semantic consistency
- δ (completion): 0.20 - Path completeness
Fields§
§alpha: f32Weight for linearity factor (α)
beta: f32Weight for terminal quality factor (β)
gamma: f32Weight for coherence factor (γ)
delta: f32Weight for completion factor (δ)
Implementations§
Source§impl PathQualityWeights
impl PathQualityWeights
Sourcepub fn new(alpha: f32, beta: f32, gamma: f32, delta: f32) -> Self
pub fn new(alpha: f32, beta: f32, gamma: f32, delta: f32) -> Self
Create custom weights.
Weights should sum to ~1.0 for normalized output.
Sourcepub fn terminal_focused() -> Self
pub fn terminal_focused() -> Self
Weights emphasizing terminal quality (for synthesis/conclusion paths).
Sourcepub fn coherence_focused() -> Self
pub fn coherence_focused() -> Self
Weights emphasizing coherence (for focused, consistent paths).
Sourcepub fn completion_focused() -> Self
pub fn completion_focused() -> Self
Weights emphasizing completion (for thorough, complete paths).
Trait Implementations§
Source§impl Clone for PathQualityWeights
impl Clone for PathQualityWeights
Source§fn clone(&self) -> PathQualityWeights
fn clone(&self) -> PathQualityWeights
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 PathQualityWeights
impl Debug for PathQualityWeights
Source§impl Default for PathQualityWeights
impl Default for PathQualityWeights
Source§impl PartialEq for PathQualityWeights
impl PartialEq for PathQualityWeights
impl Copy for PathQualityWeights
impl StructuralPartialEq for PathQualityWeights
Auto Trait Implementations§
impl Freeze for PathQualityWeights
impl RefUnwindSafe for PathQualityWeights
impl Send for PathQualityWeights
impl Sync for PathQualityWeights
impl Unpin for PathQualityWeights
impl UnwindSafe for PathQualityWeights
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.