Skip to content

Commit

Permalink
Change normalization (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Apr 25, 2023
1 parent 4b901b0 commit da9178c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sigutils/specttuner.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,6 @@ SU_INSTANCER(
new->index = -1;

if (!full_spectrum) {
/* Tentative configuration */
new->k = 1. / (2 * PI / actual_bw);

/*
* XXX: THERE IS SOMETHING HERE I COULD NOT FULLY UNDERSTAND
*
Expand All @@ -331,7 +328,6 @@ SU_INSTANCER(
new->width = SU_CEIL(min_size / params->guard);
new->halfw = new->width >> 1;
} else {
new->k = 1. / (2 * PI / params->bw);
new->center =
2 * SU_FLOOR(.5 * (effective_freq + 1 * rbw) / (2 * PI) * window_size);
new->size = window_size;
Expand All @@ -343,7 +339,7 @@ SU_INSTANCER(

/* Adjust configuration to new size */
new->decimation = window_size / new->size;
new->k = 1. / (new->decimation *new->size);
new->k = 1. / window_size;

/*
* High precision mode: initialize local oscillator to compensate
Expand Down

0 comments on commit da9178c

Please sign in to comment.