Function checkbandwidth
Source pub fn checkbandwidth<T>(bandwidth: T, operation: &str) -> CoreResult<T>
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