Skip to main content

optirs_learned/adaptive/
landscapefeatures_traits.rs

1//! # LandscapeFeatures - Trait Implementations
2//!
3//! This module contains trait implementations for `LandscapeFeatures`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use scirs2_core::numeric::Float;
12use std::fmt::Debug;
13
14use super::types::{CurvatureInfo, GradientCharacteristics, LandscapeFeatures};
15
16impl<T: Float + Debug + Send + Sync + 'static> Default for LandscapeFeatures<T> {
17    fn default() -> Self {
18        Self {
19            smoothness: scirs2_core::numeric::NumCast::from(0.5).unwrap_or_else(|| T::zero()),
20            multimodality: scirs2_core::numeric::NumCast::from(0.3).unwrap_or_else(|| T::zero()),
21            noise_level: scirs2_core::numeric::NumCast::from(0.1).unwrap_or_else(|| T::zero()),
22            curvature: CurvatureInfo::default(),
23            gradient_characteristics: GradientCharacteristics::default(),
24        }
25    }
26}