l3bin 1.0.0

Integerized Sinusoidal Binning Scheme for Level 3 Data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Checks if all elements in the vector are within the specified bounds.
///
/// # Arguments
///
/// * `values` - A slice of f64 values to check.
/// * `lower_bound` - The lower bound to check against.
/// * `upper_bound` - The upper bound to check against.
///
/// # Returns
///
/// * `true` if all values are within the bounds, `false` otherwise.
pub fn is_vector_within_bounds(values: &[f64], lower_bound: f64, upper_bound: f64) -> bool {
    values
        .iter()
        .all(|&num| num >= lower_bound && num <= upper_bound)
}