dsplib
1.1.0
C++ DSP library for MATLAB-like coding
Loading...
Searching...
No Matches
include
dsplib
gccphat.h
1
#pragma once
2
3
#include <dsplib.h>
4
5
namespace
dsplib {
6
7
//Generalized cross-correlation
8
9
//TODO: store current corr peaks?
10
struct
GccphatRes
11
{
12
real_t
tau
;
13
arr_cmplx
corr
;
14
};
15
16
GccphatRes
gccphat(
span_real
sig,
span_real
refsig,
int
fs = 1);
17
18
struct
MGccphatRes
19
{
20
arr_real
tau
;
21
std::vector<arr_cmplx>
corr
;
22
};
23
24
MGccphatRes
gccphat(std::vector<span_real> sig,
span_real
refsig,
int
fs = 1);
25
26
}
// namespace dsplib
dsplib::base_array< cmplx_t >
dsplib::span_t
Definition
span.h:295
dsplib::GccphatRes
Definition
gccphat.h:11
dsplib::GccphatRes::tau
real_t tau
time delay
Definition
gccphat.h:12
dsplib::GccphatRes::corr
arr_cmplx corr
cross-correlation between sig * refsig
Definition
gccphat.h:13
dsplib::MGccphatRes
Definition
gccphat.h:19
dsplib::MGccphatRes::corr
std::vector< arr_cmplx > corr
cross-correlation between each pair: corr[k] = sig[k] * refsig
Definition
gccphat.h:21
dsplib::MGccphatRes::tau
arr_real tau
time delays
Definition
gccphat.h:20
Generated by
1.9.8