Agora  1.2.0
Agora project
Utils Class Reference

#include <utils.h>

Public Member Functions

 Utils ()
 
 ~Utils ()
 

Static Public Member Functions

static std::vector< size_t > StrToChannels (const std::string &channel)
 
static std::vector< std::complex< int16_t > > DoubleToCint16 (const std::vector< std::vector< double >> &in)
 
static std::vector< std::complex< float > > DoubleToCfloat (const std::vector< std::vector< double >> &in)
 
static std::vector< std::complex< float > > Uint32tocfloat (const std::vector< uint32_t > &in, const std::string &order)
 
static std::vector< std::complex< float > > Cint16ToCfloat32 (const std::vector< std::complex< int16_t >> &in)
 
static std::vector< uint32_t > Cint16ToUint32 (const std::vector< std::complex< int16_t >> &in, bool conj, const std::string &order)
 
static std::vector< uint32_t > Cfloat32ToUint32 (const std::vector< std::complex< float >> &in, bool conj, const std::string &order)
 
static std::vector< std::vector< size_t > > LoadSymbols (std::vector< std::string > const &frames, char sym)
 
static void LoadDevices (std::string filename, std::vector< std::string > &data)
 
static void LoadData (const char *filename, std::vector< std::complex< int16_t >> &data, int samples)
 
static void LoadData (const char *filename, std::vector< unsigned > &data, int samples)
 
static void LoadTddConfig (const std::string &filename, std::string &jconfig)
 
static std::vector< std::string > Split (const std::string &s, char delimiter)
 
static void PrintVector (const std::vector< std::complex< int16_t >> &data)
 
static void WriteBinaryFile (const std::string &name, size_t elem_size, size_t buffer_size, void *buff)
 
static void PrintVec (const arma::cx_fvec &c, const std::string &ss)
 
static void SaveVec (const arma::cx_fvec &c, const std::string &filename, const std::string &, const bool)
 
static void PrintMat (const arma::cx_fmat &c, const std::string &ss)
 
static void SaveMat (const arma::cx_fmat &c, const std::string &filename, const std::string &ss, const bool append)
 

Constructor & Destructor Documentation

◆ Utils()

Utils::Utils ( )

◆ ~Utils()

Utils::~Utils ( )

Member Function Documentation

◆ Cfloat32ToUint32()

std::vector< uint32_t > Utils::Cfloat32ToUint32 ( const std::vector< std::complex< float >> &  in,
bool  conj,
const std::string &  order 
)
static
Here is the caller graph for this function:

◆ Cint16ToCfloat32()

std::vector< std::complex< float > > Utils::Cint16ToCfloat32 ( const std::vector< std::complex< int16_t >> &  in)
static
Here is the caller graph for this function:

◆ Cint16ToUint32()

std::vector< uint32_t > Utils::Cint16ToUint32 ( const std::vector< std::complex< int16_t >> &  in,
bool  conj,
const std::string &  order 
)
static
Here is the caller graph for this function:

◆ DoubleToCfloat()

std::vector< std::complex< float > > Utils::DoubleToCfloat ( const std::vector< std::vector< double >> &  in)
static
Here is the caller graph for this function:

◆ DoubleToCint16()

std::vector< std::complex< int16_t > > Utils::DoubleToCint16 ( const std::vector< std::vector< double >> &  in)
static
Here is the caller graph for this function:

◆ LoadData() [1/2]

void Utils::LoadData ( const char *  filename,
std::vector< std::complex< int16_t >> &  data,
int  samples 
)
static
Here is the call graph for this function:

◆ LoadData() [2/2]

void Utils::LoadData ( const char *  filename,
std::vector< unsigned > &  data,
int  samples 
)
static
Here is the call graph for this function:

◆ LoadDevices()

void Utils::LoadDevices ( std::string  filename,
std::vector< std::string > &  data 
)
static
Here is the call graph for this function:

◆ LoadSymbols()

std::vector< std::vector< size_t > > Utils::LoadSymbols ( std::vector< std::string > const &  frames,
char  sym 
)
static

◆ LoadTddConfig()

void Utils::LoadTddConfig ( const std::string &  filename,
std::string &  jconfig 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintMat()

void Utils::PrintMat ( const arma::cx_fmat &  c,
const std::string &  ss 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintVec()

void Utils::PrintVec ( const arma::cx_fvec &  c,
const std::string &  ss 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintVector()

void Utils::PrintVector ( const std::vector< std::complex< int16_t >> &  data)
static
Here is the call graph for this function:

◆ SaveMat()

void Utils::SaveMat ( const arma::cx_fmat &  c,
const std::string &  filename,
const std::string &  ss,
const bool  append 
)
static
Here is the caller graph for this function:

◆ SaveVec()

void Utils::SaveVec ( const arma::cx_fvec &  c,
const std::string &  filename,
const std::string &  ss,
const bool  append 
)
static

◆ Split()

std::vector< std::string > Utils::Split ( const std::string &  s,
char  delimiter 
)
static

◆ StrToChannels()

std::vector< size_t > Utils::StrToChannels ( const std::string &  channel)
static
Here is the caller graph for this function:

◆ Uint32tocfloat()

std::vector< std::complex< float > > Utils::Uint32tocfloat ( const std::vector< uint32_t > &  in,
const std::string &  order 
)
static
Here is the caller graph for this function:

◆ WriteBinaryFile()

void Utils::WriteBinaryFile ( const std::string &  name,
size_t  elem_size,
size_t  buffer_size,
void *  buff 
)
static
Here is the call graph for this function:

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