Vector Optimized Library of Kernels 3.2.0
Architecture-tuned implementations of math kernels
Loading...
Searching...
No Matches
volk_32fc_s32f_x2_power_spectral_density_32f.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2012, 2014 Free Software Foundation, Inc.
4 *
5 * This file is part of VOLK
6 *
7 * SPDX-License-Identifier: LGPL-3.0-or-later
8 */
9
41
42#ifndef INCLUDED_volk_32fc_s32f_x2_power_spectral_density_32f_a_H
43#define INCLUDED_volk_32fc_s32f_x2_power_spectral_density_32f_a_H
44
45#include <inttypes.h>
46#include <math.h>
47#include <stdio.h>
48
49#ifdef LV_HAVE_GENERIC
50
51static inline void
53 const lv_32fc_t* complexFFTInput,
54 const float normalizationFactor,
55 const float rbw,
56 unsigned int num_points)
57{
58 if (rbw != 1.0)
59 volk_32fc_s32f_power_spectrum_32f(
60 logPowerOutput, complexFFTInput, normalizationFactor * sqrt(rbw), num_points);
61 else
62 volk_32fc_s32f_power_spectrum_32f(
63 logPowerOutput, complexFFTInput, normalizationFactor, num_points);
64}
65
66#endif /* LV_HAVE_GENERIC */
67
68#endif /* INCLUDED_volk_32fc_s32f_x2_power_spectral_density_32f_a_H */
static void volk_32fc_s32f_x2_power_spectral_density_32f_generic(float *logPowerOutput, const lv_32fc_t *complexFFTInput, const float normalizationFactor, const float rbw, unsigned int num_points)
Definition volk_32fc_s32f_x2_power_spectral_density_32f.h:52
float complex lv_32fc_t
Definition volk_complex.h:74