rtpghi.h
1 #ifndef NOSYSTEMHEADERS
2 #include "ltfat.h"
3 #endif
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 #include "ltfat/types.h"
10 #include "phaseret/types.h"
11 
12 #ifndef _phaseret_rtpghi_h
13 #define _phaseret_rtpghi_h
14 
25 PHASERET_API double
26 phaseret_firwin2gamma(LTFAT_FIRWIN win, ltfat_int gl);
27 
30 #endif
31 
32 
38 typedef struct PHASERET_NAME(rtpghi_state) PHASERET_NAME(rtpghi_state);
39 
66 PHASERET_API int
67 PHASERET_NAME(rtpghi_init)(double gamma, ltfat_int W, ltfat_int a, ltfat_int M, double tol,
68  int do_causal, PHASERET_NAME(rtpghi_state)** p);
69 
70 
86 PHASERET_API int
87 PHASERET_NAME(rtpghi_reset)(PHASERET_NAME(rtpghi_state)* p);
88 
107 PHASERET_API int
108 PHASERET_NAME(rtpghi_set_causal)(PHASERET_NAME(rtpghi_state)* p, int do_causal);
109 
131 PHASERET_API int
132 PHASERET_NAME(rtpghi_execute)(PHASERET_NAME(rtpghi_state)* p,
133  const LTFAT_REAL s[], LTFAT_COMPLEX c[]);
134 
145 PHASERET_API int
146 PHASERET_NAME(rtpghi_done)(PHASERET_NAME(rtpghi_state)** p);
147 
174 PHASERET_API int
175 PHASERET_NAME(rtpghioffline)(const LTFAT_REAL s[], double gamma, ltfat_int L, ltfat_int W, ltfat_int a, ltfat_int M,
176  double tol, int do_causal, LTFAT_COMPLEX c[]);
177 
190 void
191 PHASERET_NAME(rtpghifgrad)(const LTFAT_REAL logs[], ltfat_int a, ltfat_int M, double gamma,
192  int do_causal, LTFAT_REAL fgrad[]);
193 
202 void
203 PHASERET_NAME(rtpghitgrad)(const LTFAT_REAL logs[], ltfat_int a, ltfat_int M, double gamma,
204  LTFAT_REAL tgrad[]);
205 
211 void
212 PHASERET_NAME(rtpghilog)(const LTFAT_REAL in[], ltfat_int L, LTFAT_REAL out[]);
213 
220 void
221 PHASERET_NAME(rtpghimagphase)(const LTFAT_REAL s[], const LTFAT_REAL phase[], ltfat_int L, LTFAT_COMPLEX c[]);
222 
223 #ifdef __cplusplus
224 }
225 #endif
226 
227 
int rtpghioffline(const LTFAT_REAL s[], double gamma, ltfat_int L, ltfat_int W, ltfat_int a, ltfat_int M, double tol, int do_causal, LTFAT_COMPLEX c[])
int rtpghi_execute(rtpghi_state *p, const LTFAT_REAL s[], LTFAT_COMPLEX c[])
int rtpghi_init(double gamma, ltfat_int W, ltfat_int a, ltfat_int M, double tol, int do_causal, rtpghi_state **p)
int rtpghi_done(rtpghi_state **p)
int rtpghi_set_causal(rtpghi_state *p, int do_causal)
int rtpghi_reset(rtpghi_state *p)
double phaseret_firwin2gamma(LTFAT_FIRWIN win, ltfat_int gl)