ant
A2 ant: class-based analysis framework
ant::reconstruct::clustering Namespace Reference

Classes

struct  bump_t
 
struct  cluster_t
 
struct  crystal_t
 

Functions

bool operator< (const crystal_t &lhs, const crystal_t &rhs)
 
double calc_total_energy (const cluster_t &cluster)
 
double calc_energy_weight (const double energy, const double total_energy)
 
void calc_bump_weights (const cluster_t &cluster, bump_t &bump)
 
void update_bump_position (const cluster_t &cluster, bump_t &bump)
 
bump_t merge_bumps (const std::vector< bump_t > bumps)
 
void split_cluster (const cluster_t &cluster, std::vector< cluster_t > &clusters)
 
void build_cluster (std::list< crystal_t > &crystals, cluster_t &cluster)
 
void do_clustering (std::list< crystal_t > &crystals, std::vector< cluster_t > &clusters)
 

Function Documentation

◆ build_cluster()

void ant::reconstruct::clustering::build_cluster ( std::list< crystal_t > &  crystals,
cluster_t cluster 
)

◆ calc_bump_weights()

void ant::reconstruct::clustering::calc_bump_weights ( const cluster_t cluster,
bump_t bump 
)

◆ calc_energy_weight()

double ant::reconstruct::clustering::calc_energy_weight ( const double  energy,
const double  total_energy 
)
Todo:
use optimal cutoff value

◆ calc_total_energy()

double ant::reconstruct::clustering::calc_total_energy ( const cluster_t cluster)

◆ do_clustering()

void ant::reconstruct::clustering::do_clustering ( std::list< crystal_t > &  crystals,
std::vector< cluster_t > &  clusters 
)

◆ merge_bumps()

bump_t ant::reconstruct::clustering::merge_bumps ( const std::vector< bump_t bumps)

◆ operator<()

bool ant::reconstruct::clustering::operator< ( const crystal_t lhs,
const crystal_t rhs 
)

◆ split_cluster()

void ant::reconstruct::clustering::split_cluster ( const cluster_t cluster,
std::vector< cluster_t > &  clusters 
)

◆ update_bump_position()

void ant::reconstruct::clustering::update_bump_position ( const cluster_t cluster,
bump_t bump 
)