The Flutter Shutter Code Optimizer
Defines | Functions
flutter_optimizer_uniform.cpp File Reference

Routines for flutter shutter code optimization, uniform motion model. The functions in this file implement equation (17). More...

#include <math.h>
#include "flutter_optimizer_uniform.h"
Include dependency graph for flutter_optimizer_uniform.cpp:

Go to the source code of this file.

Defines

#define eps   0.001
#define ABS(x)   (((x) > 0) ? (x) : (-(x)))
#define M_PI   3.14159265358979323846

Functions

void uniform_optimisator (double *code, double motion_model_parameter, int code_length, double deltat)
 Functions for the uniform motion model:
double uniform_integrand (double motion_model_parameter, double deltat, double xi, int k)
 Function to integrate (in ) in order to compute the a_k coefficient of the code; uniform motion model. This is the integrand of equation (17).
double uniform_w (double motion_model_parameter, double xi)
 Compute the weight function () for a uniform velocity.
double uniform_w_integrand (double velocity, double xi)
 Function to integrate in velocity to get the w function; uniform motion model. This is the integrand in equation (15).

Detailed Description

Routines for flutter shutter code optimization, uniform motion model. The functions in this file implement equation (17).

Author:
Yohann Tendero <tendero@math.ucla.edu>

Definition in file flutter_optimizer_uniform.cpp.


Define Documentation

#define ABS (   x)    (((x) > 0) ? (x) : (-(x)))

absolute velocityalue definition.

Definition at line 38 of file flutter_optimizer_uniform.cpp.

#define eps   0.001

epsilon definition.

Definition at line 32 of file flutter_optimizer_uniform.cpp.

#define M_PI   3.14159265358979323846

M_PI is a POSIX definition for Pi

Definition at line 44 of file flutter_optimizer_uniform.cpp.


Function Documentation

uniform_integrand ( double  motion_model_parameter,
double  deltat,
double  xi,
int  k 
)

Function to integrate (in ) in order to compute the a_k coefficient of the code; uniform motion model. This is the integrand of equation (17).

Parameters:
doublemotion_model_parameter : maximum velocity;
doubledeltat : the temporal sampling of the flutter shutter function;
doublexi : frequency;
int: k the k-th coefficient of the code.
Returns:
double , see the integrand of (17)

Construct the function to be integrated in order to compute the a_k:

return $[4]{w(0)}$

Definition at line 145 of file flutter_optimizer_uniform.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void uniform_optimisator ( double *  code,
double  motion_model_parameter,
int  code_length,
double  deltat 
)

Functions for the uniform motion model:

This function just call "uniform_integrand" with the approriate parameters : k, deltat, velocity_{max}, etc.

Main loop for the computation of a_k :

The following evaluate the integrals using Algorithm 3 with a=0, b=velocity_max/1000 (see the above comment on the support of ) and eps=0.001 (see line 32 of this file) Initalization for integral evaluation

A EXPLIQUER.

init so the first iteration of the main loop

is always done.

Main loop for the integral evaluation

Definition at line 65 of file flutter_optimizer_uniform.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

double uniform_w ( double  motion_model_parameter,
double  xi 
)

Compute the weight function () for a uniform velocity.

Construct the function for an uniform motion model,

Initalization.

The following evaluate the integrals using Algorithm 3 with a=motion_model_parameter/1000, b=velocity_max (see the above comment on the support of ) and eps=0.001 (see line 32 of this file)

Main loop for evaluation of

Definition at line 180 of file flutter_optimizer_uniform.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uniform_w_integrand ( double  velocity,
double  xi 
)

Function to integrate in velocity to get the w function; uniform motion model. This is the integrand in equation (15).

Unormalized density of probavelocityility of velocity. Notice that the normalization is not required since the code is defined up to a constant multiplication. See also the integrand of (15) and remark 1, page 8.

Parameters:
doublevelocity : velocity;
doublexi : frequency;
Returns:
${{1}_{[-|v|,|v| ]}()}{|v|}$

Definition at line 247 of file flutter_optimizer_uniform.cpp.

Here is the caller graph for this function:

 All Files Functions Defines