#include "focus3d_parameters.h"
#include "precompile.h"


Functions | |
| bool | my_mkdir (string s) |
| A simple function for making a directory if it already does not exist. | |
| Array< double, 3 > | calculate_simpson_13_weights (int Nx, int Ny, int Nz, double Dx, double Dy, double Dz) |
| Calculates the Simpson 1/3 weights for a three-dimensional grid. | |
| Array< double, 2 > | calculate_simpson_13_weights (int Ntheta, int Nphi, double Dtheta, double Dphi) |
| Calculates the Simpson 1/3 weights for a two-dimensional grid. | |
| void | file_read_error (string s) |
| Prints read file error to cerr. | |
| Array< complex< double >, 2 > | make_angular_weights (Array< double, 1 > ampl_coeffs, Array< double, 1 > phase_coeffs, focus3d_parameters param) |
| Calculates the angular weights. | |
| Array< double, 1 > | load_polynomial_coeffs (string filename, int poly_fit_order) |
| load polynomial coefficients. | |
| Array< complex< double >, 2 > | make_angular_weights (string ampl_coeff_file, string phase_coeff_file, focus3d_parameters param) |
| Calculates angular weights. | |
| int | determine_poly_fit_order (string filename) |
| Determine the order of the polynomial fit. | |
| void | interpolate_data (string filename, Array< double, 1 > theta, Array< complex< double >, 1 > &output) |
Interpolate amplitude and phase data of G( ) from a file. | |
| Array<double,2> calculate_simpson_13_weights | ( | int | Ntheta, | |
| int | Nphi, | |||
| double | Dtheta, | |||
| double | Dphi | |||
| ) |
Calculates the Simpson 1/3 weights for a two-dimensional grid.
| Ntheta | - number of points along dimension 1 | |
| Nphi | - number of points along dimension 2 | |
| Dtheta | - grid spacing along dimension 1 | |
| Dphi | - grid spacing along dimension 2 |
| Array<double,3> calculate_simpson_13_weights | ( | int | Nx, | |
| int | Ny, | |||
| int | Nz, | |||
| double | Dx, | |||
| double | Dy, | |||
| double | Dz | |||
| ) |
Calculates the Simpson 1/3 weights for a three-dimensional grid.
| Nx | - number of points along dimension 1 | |
| Ny | - number of points along dimension 2 | |
| Nz | - number of points along dimension 3 | |
| Dx | - grid spacing along dimension 1 | |
| Dy | - grid spacing along dimension 2 | |
| Dz | - grid spacing along dimension 3 |
| int determine_poly_fit_order | ( | string | filename | ) |
Determine the order of the polynomial fit.
| filename | - std::string with filename containing the polynomial coefficients |
is
and the coefficients P(0), ..., P(3) are stored in the file one in each line in that order.
| void file_read_error | ( | string | s | ) |
Prints read file error to cerr.
| s | - std::string to be sent to cerr |
| void interpolate_data | ( | string | filename, | |
| Array< double, 1 > | theta, | |||
| Array< complex< double >, 1 > & | output | |||
| ) |
Interpolate amplitude and phase data of G(
) from a file.
| filename | - std::string with filename containing three colums corresponding to , , and angle( ) | |
| theta | - A double array with the theta values at which the interpolated G( ) is required | |
| [out] | output | - a complex double array which is populated with interpolated G( ). Note the memory to this array should be allocated before calling the function. The length of this array is equal to that of the second parameter. |
| Array<double,1> load_polynomial_coeffs | ( | string | filename, | |
| int | poly_fit_order | |||
| ) |
load polynomial coefficients.
| filename | - std::string with filename containing the polynomial coefficients | |
| poly_fit_order | - order of the fit polynomial |
is
and the coefficients P(0), ..., P(3) are stored in the file one in each line in that order.
| Array<complex<double>,2> make_angular_weights | ( | string | ampl_coeff_file, | |
| string | phase_coeff_file, | |||
| focus3d_parameters | param | |||
| ) |
Calculates angular weights.
| ampl_coeff_file | - std::string with filename containing the polynomial coefficients for amplitude fit | |
| phase_coeff_file | - std::string with filename containing the polynomial coefficients for amplitude fit | |
| param | - focus3d_parameters object with information about Ntheta and Nphi |
is
and the coefficients P(0), ..., P(3) are stored in the file one in each line in that order.
| Array<complex<double>,2> make_angular_weights | ( | Array< double, 1 > | ampl_coeffs, | |
| Array< double, 1 > | phase_coeffs, | |||
| focus3d_parameters | param | |||
| ) |
Calculates the angular weights.
| ampl_coeffs | - blitz array of polynomial coefficients of amplitude fit | |
| phase_coeffs | - blitz array of polynomial coefficients of phase fit | |
| param | - focus3d_parameters object containing Ntheta and Nphi information. |
| bool my_mkdir | ( | string | s | ) |
A simple function for making a directory if it already does not exist.
| s | - name of the directory. |
1.5.5