Logo coherent WaveBurst  
Library Reference Guide
Logo
List of all members | Public Member Functions | Private Attributes | List of all members
wavegraph Class Reference

Definition at line 74 of file wavegraph.hh.

Public Member Functions

 wavegraph ()
 
 ~wavegraph ()
 
void add_node (const int nodeidx, const int timeidx, const int freqidx, const int scaleidx, const double value_avg, const double value_stdev, const bool endnode, const nodeids &ancestors)
 
void add_node (const wavenode node)
 
void clear ()
 
std::vector< clusterclustering (const double threshold, const std::vector< WSeries< double > * > &data, const double strip_edges, const int path_halfwidth, const double penal_factor, const std::vector< double > &energy_thresholds)
 
void create (const std::string &srcfile)
 
int freq (int id)
 
nodeids get_ancestors (int id)
 
wavenode get_node (int id)
 
int get_span ()
 
int get_stride ()
 
void heaviest_path (std::vector< double > &total_weight, std::vector< int > &total_length, std::vector< int > &best_ancestor, const std::vector< double > weights)
 
bool is_compatible (const std::vector< WSeries< double > * > &data)
 
int is_endnode (int id)
 
bool is_topologically_sorted ()
 
int nodeid (int id)
 
void print ()
 
int scale (int id)
 
int size ()
 
int time (int id)
 

Private Attributes

nodes graph
 
int nscales
 
int samp_freq
 
int scalemax
 
int scalemin
 
int span
 
int stride
 

#include <wavegraph.hh>

Inheritance diagram for wavegraph:
[legend]

Constructor & Destructor Documentation

◆ wavegraph()

wavegraph::wavegraph ( )
inline

Definition at line 78 of file wavegraph.hh.

◆ ~wavegraph()

wavegraph::~wavegraph ( )
inline

Definition at line 79 of file wavegraph.hh.

Member Function Documentation

◆ add_node() [1/2]

void wavegraph::add_node ( const int  nodeidx,
const int  timeidx,
const int  freqidx,
const int  scaleidx,
const double  value_avg,
const double  value_stdev,
const bool  endnode,
const nodeids ancestors 
)

Definition at line 77 of file wavegraph.cc.

◆ add_node() [2/2]

void wavegraph::add_node ( const wavenode  node)

Definition at line 107 of file wavegraph.cc.

◆ clear()

void wavegraph::clear ( )
inline

Definition at line 83 of file wavegraph.hh.

◆ clustering()

std::vector< cluster > wavegraph::clustering ( const double  threshold,
const std::vector< WSeries< double > * > &  data,
const double  strip_edges,
const int  path_halfwidth,
const double  penal_factor,
const std::vector< double > &  energy_thresholds 
)

Definition at line 493 of file wavegraph.cc.

◆ create()

void wavegraph::create ( const std::string &  srcfile)

Definition at line 117 of file wavegraph.cc.

◆ freq()

int wavegraph::freq ( int  id)
inline

Definition at line 103 of file wavegraph.hh.

◆ get_ancestors()

nodeids wavegraph::get_ancestors ( int  id)
inline

Definition at line 97 of file wavegraph.hh.

◆ get_node()

wavenode wavegraph::get_node ( int  id)
inline

Definition at line 95 of file wavegraph.hh.

◆ get_span()

int wavegraph::get_span ( )
inline

Definition at line 109 of file wavegraph.hh.

◆ get_stride()

int wavegraph::get_stride ( )
inline

Definition at line 111 of file wavegraph.hh.

◆ heaviest_path()

void wavegraph::heaviest_path ( std::vector< double > &  total_weight,
std::vector< int > &  total_length,
std::vector< int > &  best_ancestor,
const std::vector< double >  weights 
)

Definition at line 366 of file wavegraph.cc.

◆ is_compatible()

bool wavegraph::is_compatible ( const std::vector< WSeries< double > * > &  data)

Definition at line 438 of file wavegraph.cc.

◆ is_endnode()

int wavegraph::is_endnode ( int  id)
inline

Definition at line 107 of file wavegraph.hh.

◆ is_topologically_sorted()

bool wavegraph::is_topologically_sorted ( )

Definition at line 323 of file wavegraph.cc.

◆ nodeid()

int wavegraph::nodeid ( int  id)
inline

Definition at line 99 of file wavegraph.hh.

◆ print()

void wavegraph::print ( )

Definition at line 296 of file wavegraph.cc.

◆ scale()

int wavegraph::scale ( int  id)
inline

Definition at line 105 of file wavegraph.hh.

◆ size()

int wavegraph::size ( )
inline

Definition at line 93 of file wavegraph.hh.

◆ time()

int wavegraph::time ( int  id)
inline

Definition at line 101 of file wavegraph.hh.

Member Data Documentation

◆ graph

nodes wavegraph::graph
private

Definition at line 124 of file wavegraph.hh.

◆ nscales

int wavegraph::nscales
private

Definition at line 129 of file wavegraph.hh.

◆ samp_freq

int wavegraph::samp_freq
private

Definition at line 130 of file wavegraph.hh.

◆ scalemax

int wavegraph::scalemax
private

Definition at line 128 of file wavegraph.hh.

◆ scalemin

int wavegraph::scalemin
private

Definition at line 127 of file wavegraph.hh.

◆ span

int wavegraph::span
private

Definition at line 125 of file wavegraph.hh.

◆ stride

int wavegraph::stride
private

Definition at line 126 of file wavegraph.hh.


The documentation for this class was generated from the following files: