mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
CSV export + DFT math operation
This commit is contained in:
parent
79a990af47
commit
6e55eb02dd
27 changed files with 935 additions and 52 deletions
|
|
@ -155,7 +155,7 @@ static size_t reverseBits(size_t val, int width) {
|
|||
void Fft::shift(std::vector<std::complex<double> > &vec, bool inverse)
|
||||
{
|
||||
int rotate_len = vec.size() / 2;
|
||||
if(vec.size() % 0x01 != 0) {
|
||||
if((vec.size() & 0x01) != 0) {
|
||||
// odd size, behavior depends on whether this is an inverse shift
|
||||
if(!inverse) {
|
||||
rotate_len++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue