PicoScenes API Docs
 
Loading...
Searching...
No Matches
DSP.hxx
Go to the documentation of this file.
1//
2// Created by Zhiping Jiang on 25-4-18.
3//
4
5#ifndef DSP_HXX
6#define DSP_HXX
7
8#include "../CSISegment.hxx"
9
11 std::vector<double> pathLength;
12 std::vector<double> pathDelay;
13 uint8_t numPath;
14};
15
16class DSP {
17public:
25 static ToFEstimationResult estimateToF(const CSI &csi, std::optional<uint8_t> numPath = std::nullopt);
26
27 static std::vector<ToFEstimationResult> estimateMidambleToF(const CSI &csi, std::optional<uint8_t> numPath = std::nullopt);
28
29 static std::pair<std::vector<float>, std::vector<float>> freqzSpectrum(const CS16Vector &iqSamples, uint32_t numFFT, float samplingRate);
30};
31
32#endif // DSP_HXX
Definition DSP.hxx:16
static ToFEstimationResult estimateToF(const CSI &csi, std::optional< uint8_t > numPath=std::nullopt)
Estimates the time of flight (ToF) of a signal.
static std::pair< std::vector< float >, std::vector< float > > freqzSpectrum(const CS16Vector &iqSamples, uint32_t numFFT, float samplingRate)
static std::vector< ToFEstimationResult > estimateMidambleToF(const CSI &csi, std::optional< uint8_t > numPath=std::nullopt)
std::vector< double > pathDelay
Definition DSP.hxx:12
std::vector< double > pathLength
Definition DSP.hxx:11
uint8_t numPath
Definition DSP.hxx:13