Xmipp  v3.23.11-Nereus
Functions
cuda_volume_halves_restorator.cpp File Reference
#include "cuda_volume_halves_restorator.h"
#include "core/xmipp_funcs.h"
#include "data/numerical_tools.h"
#include "cuda_asserts.h"
#include "cuda_volume_restoration_kernels.h"
Include dependency graph for cuda_volume_halves_restorator.cpp:

Go to the source code of this file.

Functions

double fft_idx2digfreq (int idx, size_t size)
 

Function Documentation

◆ fft_idx2digfreq()

double fft_idx2digfreq ( int  idx,
size_t  size 
)

Definition at line 91 of file cuda_volume_halves_restorator.cpp.

91  {
92  return (size<=1)? 0:(( (((int)idx) <= (((int)(size)) >> 1)) ? ((int)(idx)) : -((int)(size)) + ((int)(idx))) / (double)(size));
93 }