pub fn prop_sum(&self, elements: &[T]) -> f64 {
        let size = self.size();

        if size == 0 {
            return 0.0
        }

        let counts = self.count_sum(elements);
        (counts as f64) / (size as f64)
    }
/// Return the sum of proportions of a list of elements in the data.
///
/// # Examples
///
/// ```rust
/// use countrs::Counter;
/// let counter: Counter<u8> = "atgc".bytes().collect();
///
/// let prop = counter.prop_sum(b"gc");
/// assert_eq!(prop, 0.5);
/// ```
Return the sum of proportions of a list of elements in the data.
Return the sum of proportions of a list of elements in the data .
pub fn prop_sum(&self, elements: &[T]) -> f64 {
        let size = self.size();
        if size == 0 {
            return 0.0
        }
        let counts = self.count_sum(elements);
        (counts as f64) / (size as f64)
    }
pub fn prop_sum ( & self , elements : & [ T ] ) -> f64 { let size = self . size ( ) ; if size == 0 { return 0.0 } let counts = self . count_sum ( elements ) ; ( counts as f64 ) / ( size as f64 ) }
Return the sum of proportions of a list of elements in the data.
Return the sum of proportions of a list of elements in the data .
&self
elements
&[T]
&self
elements
&[T]
examples
```rust
use countrs::Counter;
let counter: Counter = "atgc".bytes().collect().


` ` ` rust use countrs :: Counter ; let counter : Counter = " atgc " . bytes () . collect () .