fn bins_row(&self, nbin: usize) -> usize {
        if nbin > self.n_bins {
            panic!("Trying to get the row of a bin out of bounds... found {} but only {} are available", nbin, self.n_bins);
        }

        let mut row = self.n_rows - 1; // If not found, this is the value
        for (this_row, acc) in self.acc_bins.iter().enumerate() {
            if nbin < *acc + 1 {
                row = this_row - 1;
                break;
            }
        }
        row
    }
/// Calculates the row in which a certain bin is located
Calculates the row in which a certain bin is located
Calculates the row in which a certain bin is located
fn bins_row(&self, nbin: usize) -> usize {
        if nbin > self.n_bins {
            panic!("Trying to get the row of a bin out of bounds... found {} but only {} are available", nbin, self.n_bins);
        }
        let mut row = self.n_rows - 1; // If not found, this is the value
        for (this_row, acc) in self.acc_bins.iter().enumerate() {
            if nbin < *acc + 1 {
                row = this_row - 1;
                break;
            }
        }
        row
    }
fn bins_row ( & self , nbin : usize ) -> usize { if nbin > self . n_bins { panic ! ( " " nbin self n_bins ) ; } let mut row = self . n_rows - 1 ; // If not found, this is the value for ( this_row , acc ) in self . acc_bins . iter ( ) . enumerate ( ) { if nbin < * acc + 1 { row = this_row - 1 ; break ; } } row }
Calculates the row in which a certain bin is located
Calculates the row in which a certain bin is located
&self
nbin
usize
&self
nbin
usize