-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathVMD.h
More file actions
31 lines (26 loc) · 666 Bytes
/
Copy pathVMD.h
File metadata and controls
31 lines (26 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <vmd/vmd.hpp>
#include <complex>
#include <vector>
using vectord = std::vector<double>;
using vectorcd = std::vector<std::complex<double>>;
/**
* Compatibility wrapper for the original VMD_cpp API.
*
* `u` is K x N, `u_hat` is N x K, and `omega` contains normalized
* center frequencies in cycles per sample. New code should prefer
* `vmd::decompose()`.
*/
void VMD(
Eigen::MatrixXd& u,
Eigen::MatrixXcd& u_hat,
Eigen::MatrixXd& omega,
const vectord& signal,
double alpha,
double tau,
int K,
int DC,
int init,
double tol,
double eps);
vectorcd circshift(const vectorcd& data, int offset);