Skip to content

Commit

Permalink
Add more getters #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Sep 3, 2023
1 parent 987a84b commit 2d280e7
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion cpp/src/qdft/qdft.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,36 @@ namespace qdft
return config.size;
}

double samplerate() const
{
return config.samplerate;
}

const std::pair<double, double>& bandwidth() const
{
return config.bandwidth;
}

double resolution() const
{
return config.resolution;
}

double quality() const
{
return config.quality;
}

double latency() const
{
return config.latency;
}

const std::optional<std::pair<double, double>>& window const
{
return config.window;
}

const std::vector<double>& frequencies() const
{
return data.frequencies;
Expand Down Expand Up @@ -261,8 +291,8 @@ namespace qdft
double resolution;
double quality;
double latency;
size_t size;
std::optional<std::pair<double, double>> window;
size_t size;
};

qdft_config_t config;
Expand Down

0 comments on commit 2d280e7

Please sign in to comment.