TimeSeriesUtils Class Reference

#include <RobotAPI/libraries/core/math/TimeSeriesUtils.h>

Public Types

enum  BorderMode { Nearest }
 

Public Member Functions

 TimeSeriesUtils ()
 

Static Public Member Functions

static std::vector< floatApplyFilter (const std::vector< float > &data, const std::vector< float > &filter, BorderMode mode)
 
static std::vector< floatApplyGaussianFilter (const std::vector< float > &data, float sigma, float sampleTime, BorderMode mode)
 
static std::vector< floatCreateGaussianFilter (const float sigma, float sampleTime, float truncate=4)
 
static std::vector< floatMakeTimestamps (float start, float end, size_t count)
 
static std::vector< floatResample (const std::vector< float > &timestamps, const std::vector< float > &data, const std::vector< float > &newTimestamps)
 

Detailed Description

Definition at line 34 of file TimeSeriesUtils.h.

Member Enumeration Documentation

◆ BorderMode

enum BorderMode
strong
Enumerator
Nearest 

Definition at line 37 of file TimeSeriesUtils.h.

Constructor & Destructor Documentation

◆ TimeSeriesUtils()

Definition at line 30 of file TimeSeriesUtils.cpp.

Member Function Documentation

◆ ApplyFilter()

std::vector< float > ApplyFilter ( const std::vector< float > &  data,
const std::vector< float > &  filter,
BorderMode  mode 
)
static

Definition at line 68 of file TimeSeriesUtils.cpp.

+ Here is the caller graph for this function:

◆ ApplyGaussianFilter()

std::vector< float > ApplyGaussianFilter ( const std::vector< float > &  data,
float  sigma,
float  sampleTime,
BorderMode  mode 
)
static

Definition at line 96 of file TimeSeriesUtils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateGaussianFilter()

std::vector< float > CreateGaussianFilter ( const float  sigma,
float  sampleTime,
float  truncate = 4 
)
static

Definition at line 102 of file TimeSeriesUtils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakeTimestamps()

std::vector< float > MakeTimestamps ( float  start,
float  end,
size_t  count 
)
static

Definition at line 114 of file TimeSeriesUtils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Resample()

std::vector< float > Resample ( const std::vector< float > &  timestamps,
const std::vector< float > &  data,
const std::vector< float > &  newTimestamps 
)
static

Definition at line 34 of file TimeSeriesUtils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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