Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | List of all members
wavegraph Class Reference

Definition at line 56 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 ( )
inline

Definition at line 60 of file wavegraph.hh.

wavegraph::~wavegraph ( )
inline

Definition at line 61 of file wavegraph.hh.

Member Function Documentation

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 59 of file wavegraph.cc.

void wavegraph::add_node ( const wavenode  node)

Definition at line 89 of file wavegraph.cc.

void wavegraph::clear ( )
inline

Definition at line 65 of file wavegraph.hh.

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 475 of file wavegraph.cc.

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

Definition at line 99 of file wavegraph.cc.

int wavegraph::freq ( int  id)
inline

Definition at line 85 of file wavegraph.hh.

nodeids wavegraph::get_ancestors ( int  id)
inline

Definition at line 79 of file wavegraph.hh.

wavenode wavegraph::get_node ( int  id)
inline

Definition at line 77 of file wavegraph.hh.

int wavegraph::get_span ( )
inline

Definition at line 91 of file wavegraph.hh.

int wavegraph::get_stride ( )
inline

Definition at line 93 of file wavegraph.hh.

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 348 of file wavegraph.cc.

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

Definition at line 420 of file wavegraph.cc.

int wavegraph::is_endnode ( int  id)
inline

Definition at line 89 of file wavegraph.hh.

bool wavegraph::is_topologically_sorted ( )

Definition at line 305 of file wavegraph.cc.

int wavegraph::nodeid ( int  id)
inline

Definition at line 81 of file wavegraph.hh.

void wavegraph::print ( )

Definition at line 278 of file wavegraph.cc.

int wavegraph::scale ( int  id)
inline

Definition at line 87 of file wavegraph.hh.

int wavegraph::size ( )
inline

Definition at line 75 of file wavegraph.hh.

int wavegraph::time ( int  id)
inline

Definition at line 83 of file wavegraph.hh.

Member Data Documentation

nodes wavegraph::graph
private

Definition at line 106 of file wavegraph.hh.

int wavegraph::nscales
private

Definition at line 111 of file wavegraph.hh.

int wavegraph::samp_freq
private

Definition at line 112 of file wavegraph.hh.

int wavegraph::scalemax
private

Definition at line 110 of file wavegraph.hh.

int wavegraph::scalemin
private

Definition at line 109 of file wavegraph.hh.

int wavegraph::span
private

Definition at line 107 of file wavegraph.hh.

int wavegraph::stride
private

Definition at line 108 of file wavegraph.hh.


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