Table of Contents

Mojo struct

HDBSCANBoruvka

@memory_only
struct HDBSCANBoruvka

Fields

  • tree (Pointer[KDTreeBoruvka, MutUntrackedOrigin])
  • n (Int)
  • dim (Int)
  • min_samples (Int)
  • alpha (Float32)
  • num_components (Int)
  • candidate_point (List[Int])
  • candidate_neighbor (List[Int])
  • candidate_dist (List[Float32])
  • component_bound (List[Float32])
  • u_f (UnionFind)
  • u_f_finds (List[Int])
  • edges (Matrix)
  • num_edges (Int)
  • component_of_point (List[Int])
  • component_of_node (List[Int])
  • component_remap (List[Int])

Implemented traits

AnyType, Deinitable, Movable

Methods

__init__

fn def __init__(out self, t: Pointer[KDTreeBoruvka, MutUntrackedOrigin], min_samples: Int = Int(5), alpha: Float32 = 1)

Args:

  • t (Pointer[KDTreeBoruvka, MutUntrackedOrigin])
  • min_samples (Int)
  • alpha (Float32)
  • self (Self)

Returns:

Self

Raises:

mr_rdist

fn def mr_rdist(self, var d2: Float32, p: Int, q: Int) -> Float32

Args:

  • self (Self)
  • d2 (Float32)
  • p (Int)
  • q (Int)

Returns:

Float32

update_components_and_nodes

fn def update_components_and_nodes(mut self)

Args:

  • self (Self)

Raises:

boruvka_query

fn def boruvka_query(mut self)

Args:

  • self (Self)

Raises:

merge_components

fn def merge_components(mut self) -> Int

Args:

  • self (Self)

Returns:

Int

Raises:

spanning_tree

fn def spanning_tree(mut self) -> Matrix

Args:

  • self (Self)

Returns:

Matrix

Raises: