1 #ifndef NOSYSTEMHEADERS 9 #include "ltfat/types.h" 10 #include "phaseret/types.h" 12 #ifndef _phaseret_rtpghi_h 13 #define _phaseret_rtpghi_h 38 typedef struct PHASERET_NAME(rtpghi_state) PHASERET_NAME(rtpghi_state);
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);
87 PHASERET_NAME(
rtpghi_reset)(PHASERET_NAME(rtpghi_state)* p);
133 const LTFAT_REAL s[], LTFAT_COMPLEX c[]);
146 PHASERET_NAME(
rtpghi_done)(PHASERET_NAME(rtpghi_state)** p);
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[]);
191 PHASERET_NAME(rtpghifgrad)(
const LTFAT_REAL logs[], ltfat_int a, ltfat_int M,
double gamma,
192 int do_causal, LTFAT_REAL fgrad[]);
203 PHASERET_NAME(rtpghitgrad)(
const LTFAT_REAL logs[], ltfat_int a, ltfat_int M,
double gamma,
212 PHASERET_NAME(rtpghilog)(
const LTFAT_REAL in[], ltfat_int L, LTFAT_REAL out[]);
221 PHASERET_NAME(rtpghimagphase)(
const LTFAT_REAL s[],
const LTFAT_REAL phase[], ltfat_int L, LTFAT_COMPLEX c[]);
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)