pub fn check_seperation<M: Metric>(
        &self,
        scale: f32,
        point_cloud: &PointCloud<M>,
    ) -> MalwareBrotResult<bool> {
        let mut nodes = self.singles_indexes.clone();
        nodes.push(self.address.1);
        if let Some(children) = &self.children {
            nodes.extend(children.addresses.iter().map(|(_si, pi)| *pi));
        }
        let adj = point_cloud.adj(&nodes)?;
        Ok(scale > adj.min())
    }
/// Brute force verifies that the children are separated by at least the scale provided. 
/// The scale provided should be b^(s-1) where s is this node's scale index.
Brute force verifies that the children are separated by at least the scale provided.
The scale provided should be b^(s-1) where s is this node's scale index.
Brute force verifies that the children are separated by at least the scale provided . The scale provided should be b^ ( s - 1 ) where s is this node ' s scale index .
pub fn check_seperation<M: Metric>(
        &self,
        scale: f32,
        point_cloud: &PointCloud<M>,
    ) -> MalwareBrotResult<bool> {
        let mut nodes = self.singles_indexes.clone();
        nodes.push(self.address.1);
        if let Some(children) = &self.children {
            nodes.extend(children.addresses.iter().map(|(_si, pi)| *pi));
        }
        let adj = point_cloud.adj(&nodes)?;
        Ok(scale > adj.min())
    }
pub fn check_seperation < M : Metric > ( & self , scale : f32 , point_cloud : & PointCloud < M > , ) -> MalwareBrotResult < bool > { let mut nodes = self . singles_indexes . clone ( ) ; nodes . push ( self . address . 1 ) ; if let Some ( children ) = & self . children { nodes . extend ( children . addresses . iter ( ) . map ( | ( _si , pi ) | * pi ) ) ; } let adj = point_cloud . adj ( & nodes ) ? ; Ok ( scale > adj . min ( ) ) }
Brute force verifies that the children are separated by at least the scale provided.
Brute force verifies that the children are separated by at least the scale provided .
&self
scale
f32
point_cloud
&PointCloud<M>
&self
scale
f32
point_cloud
&PointCloud<M>