pub struct ProjectionOptions {
pub primary_weight: f64,
pub orthogonal_weight_in_beam: f64,
pub orthogonal_weight_off_beam: f64,
pub overlap_weight: f64,
pub off_beam_penalty: f64,
pub aspect_ratio_weight: f64,
}Expand description
Tuning parameters for spatial 2D projection scoring, including primary/orthogonal weights and aspect-ratio distance weighting.
Fields§
§primary_weight: f64Primary axis distance multiplier (default: 13.0).
orthogonal_weight_in_beam: f64Orthogonal axis distance multiplier for in-beam candidates (default: 1.0).
orthogonal_weight_off_beam: f64Orthogonal axis distance multiplier for off-beam candidates (default: 5.0).
overlap_weight: f64Overlap bonus multiplier along orthogonal axis (default: 0.1).
off_beam_penalty: f64Penalty added for off-beam candidates (default: 1000.0).
aspect_ratio_weight: f64Aspect-ratio distance weighting exponent (default: 0.0 = neutral/unweighted,
0 modulates orthogonal vs primary balance by aspect ratio).
Implementations§
Source§impl ProjectionOptions
impl ProjectionOptions
Sourcepub const fn standard() -> Self
pub const fn standard() -> Self
Standard baseline projection options (aspect-ratio weighting disabled).
Sourcepub const fn with_aspect_ratio_weighting(weight: f64) -> Self
pub const fn with_aspect_ratio_weighting(weight: f64) -> Self
Creates options with aspect-ratio distance weighting enabled.
Sourcepub fn with_aspect_ratio_weight(self, weight: f64) -> Self
pub fn with_aspect_ratio_weight(self, weight: f64) -> Self
Sets the aspect-ratio weighting exponent.