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::LandscapeFeatures;
15
16impl<T: Float + Debug + scirs2_core::ndarray::ScalarOperand + Send + Sync + 'static> Default
17    for LandscapeFeatures<T>
18{
19    fn default() -> Self {
20        Self {
21            smoothness: scirs2_core::numeric::NumCast::from(0.5).unwrap_or_else(|| T::zero()),
22            multimodality: scirs2_core::numeric::NumCast::from(0.3).unwrap_or_else(|| T::zero()),
23            noise_level: scirs2_core::numeric::NumCast::from(0.1).unwrap_or_else(|| T::zero()),
24        }
25    }
26}