optirs_learned/adaptive/
landscapefeatures_traits.rs1use 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}