AhcCluster Struct Reference

AhcCluster is the cluster object for the agglomerative clustering. More...

#include <agglomerative-clustering.h>

Collaboration diagram for AhcCluster:

Public Member Functions

 AhcCluster (int32 id, int32 p1, int32 p2, std::vector< int32 > utts)
 

Public Attributes

int32 id
 
int32 parent1
 
int32 parent2
 
int32 size
 
std::vector< int32utt_ids
 

Detailed Description

AhcCluster is the cluster object for the agglomerative clustering.

It contains three integer IDs: its own ID and the IDs of its "parents", i.e. the clusters that were merged to form it. It also contains the size (the number of points in the cluster) and a vector of the IDs of the utterances contained in the cluster.

Definition at line 41 of file agglomerative-clustering.h.

Constructor & Destructor Documentation

◆ AhcCluster()

AhcCluster ( int32  id,
int32  p1,
int32  p2,
std::vector< int32 utts 
)
inline

Definition at line 47 of file agglomerative-clustering.h.

48  : id(id), parent1(p1), parent2(p2), utt_ids(utts) {
49  size = utts.size();
50  }
std::vector< int32 > utt_ids

Member Data Documentation

◆ id

int32 id

Definition at line 42 of file agglomerative-clustering.h.

Referenced by AgglomerativeClusterer::MergeClusters().

◆ parent1

int32 parent1

Definition at line 42 of file agglomerative-clustering.h.

Referenced by AgglomerativeClusterer::MergeClusters().

◆ parent2

int32 parent2

Definition at line 42 of file agglomerative-clustering.h.

Referenced by AgglomerativeClusterer::MergeClusters().

◆ size

◆ utt_ids


The documentation for this struct was generated from the following file: