pub fn resample_block_in_place(&mut self, nodes: &[usize]) -> bool {
        match self.resample_with_labels(nodes) {
            Some((joint, new_to_old)) => {
                for (value, index) in joint.into_iter().zip(new_to_old.into_iter()) {
                    self.assignments[index] = value;
                }
                true
            }
            None => false,
        }
    }
/// Resample the specified nodes in place
/// If the nodes do not form a forest, returns false, else true
Resample the specified nodes in place
If the nodes do not form a forest, returns false, else true
Resample the specified nodes in place If the nodes do not form a forest returns false else true
pub fn resample_block_in_place(&mut self, nodes: &[usize]) -> bool {
        match self.resample_with_labels(nodes) {
            Some((joint, new_to_old)) => {
                for (value, index) in joint.into_iter().zip(new_to_old.into_iter()) {
                    self.assignments[index] = value;
                }
                true
            }
            None => false,
        }
    }
pub fn resample_block_in_place ( & mut self , nodes : & [ usize ] ) -> bool { match self . resample_with_labels ( nodes ) { Some ( ( joint , new_to_old ) ) => { for ( value , index ) in joint . into_iter ( ) . zip ( new_to_old . into_iter ( ) ) { self . assignments [ index ] = value ; } true } None => false , } }
Resample the specified nodes in place
If the nodes do not form a forest, returns false, else true
Resample the specified nodes in place If the nodes do not form a forest returns false else true
&mut self
nodes
&[usize]