The Flutter Shutter Density Estimator
 All Files Functions Macros Pages
Macros | Functions
routines.cpp File Reference

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"
Include dependency graph for routines.cpp:

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)
 

Detailed Description

Routines for estimating the probability density of flutter shutter codes: Functions implemented.

Author
Yohann Tendero tende.nosp@m.ro@m.nosp@m.ath.u.nosp@m.cla..nosp@m.edu

Definition in file routines.cpp.

Macro Definition Documentation

#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.

Function Documentation

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.

Here is the caller graph for this function:

fileToVector ( const char *  name)

Given the file name oof a text file containing a flutter code store the values in a vector of doubles.

Parameters
constchar *name: the file name containing the flutter code
Returns
std::vector<double> code: the vector containing the code values.

Definition at line 74 of file routines.cpp.

Here is the caller graph for this function:

double w_prime_estimator ( double  xi,
std::vector< double >  code,
double  epsilon 
)

Definition at line 162 of file routines.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: