checkbandwidth

Function checkbandwidth 

Source
pub fn checkbandwidth<T>(bandwidth: T, operation: &str) -> CoreResult<T>
where T: Float + Display + Copy,
Expand description

Validate bandwidth parameter for density-based clustering

§Arguments

  • bandwidth - Bandwidth value
  • operation - Operation name for error messages

§Returns

  • Ok(bandwidth) if bandwidth is valid
  • Err(CoreError::ValueError) if bandwidth is invalid