neuro_toolbox
Namespaces | Functions
statistics.hpp File Reference
#include "config.hpp"
Include dependency graph for statistics.hpp:

Go to the source code of this file.

Namespaces

 NTB
 

Functions

template<typename T >
std::vector< T > NTB::flatten (const std::vector< std::vector< T >> &vec)
 
std::vector< double > NTB::angle_arr (const fftw_complex *z, const int n, bool deg=false)
 
template<typename T >
double NTB::average (const std::vector< T > &vec, const int index=0)
 
void NTB::hilbert_transform (const std::vector< double > &in_vec, fftw_complex *out_array)
 
std::vector< double > NTB::unwrap (const std::vector< double > &in_vec)
 
double NTB::calculate_phase_difference (const std::vector< double > &x)
 
double NTB::calculate_phase_synchrony (const std::vector< std::vector< double >> &voltages)