Routines for estimating the probability density of flutter shutter codes: Functions implemented. More...
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include <fstream>
#include <vector>
#include "routines.h"
Go to the source code of this file.
Macros | |
#define | ABS(x) (((x) > 0) ? (x) : (-(x))) |
#define | M_PI 3.14159265358979323846 |
Functions | |
std::vector< double > | fileToVector (const char *name) |
Given the file name oof a text file containing a flutter code store the values in a vector of doubles. More... | |
double | abs_hat_alpha (std::vector< double > code, double xi) |
double | w_prime_estimator (double xi, std::vector< double > code, double epsilon) |
Routines for estimating the probability density of flutter shutter codes: Functions implemented.
Definition in file routines.cpp.
#define ABS | ( | x | ) | (((x) > 0) ? (x) : (-(x))) |
absolute value definition.
Definition at line 46 of file routines.cpp.
#define M_PI 3.14159265358979323846 |
M_PI is a POSIX definition for Pi
Definition at line 54 of file routines.cpp.
double abs_hat_alpha | ( | std::vector< double > | code, |
double | xi | ||
) |
Gives back the modulus of the Fourier transform
RETURNS the modulus at xi of the flutter shutter function given its code: ()= sinc({ }{2}) {k=0}^{L-1} e^{-i {2k+1}{2}}
Definition at line 112 of file routines.cpp.
fileToVector | ( | const char * | name | ) |
Given the file name oof a text file containing a flutter code store the values in a vector of doubles.
const | char *name: the file name containing the flutter code |
Definition at line 74 of file routines.cpp.
double w_prime_estimator | ( | double | xi, |
std::vector< double > | code, | ||
double | epsilon | ||
) |
Definition at line 162 of file routines.cpp.