#include "Db/DbGrid.hpp"
#include "Db/Db.hpp"
#include "Model/Model.hpp"
#include "Simulation/ACalcSimulation.hpp"
#include "Simulation/SimuFFTParam.hpp"
#include "Simulation/CalcSimuFFT.hpp"
#include "Basic/Law.hpp"
#include "Basic/VectorHelper.hpp"
#include "Core/fftn.hpp"
#include <math.h>
Macros | |
#define | IND(ix, iy, iz) ((iz) + _dims[2] * ((iy) + _dims[1] * (ix))) |
#define | U(ix, iy, iz) (_u[IND(ix,iy,iz)]) |
Functions | |
int | simfft (DbGrid *db, Model *model, SimuFFTParam ¶m, int nbsimu, int seed, int verbose, const NamingConvention &namconv) |
VectorDouble | getChangeSupport (DbGrid *db, Model *model, const SimuFFTParam ¶m, const VectorDouble &sigma, int seed, bool verbose) |
#define IND | ( | ix, | |
iy, | |||
iz | |||
) | ((iz) + _dims[2] * ((iy) + _dims[1] * (ix))) |
#define U | ( | ix, | |
iy, | |||
iz | |||
) | (_u[IND(ix,iy,iz)]) |
VectorDouble getChangeSupport | ( | DbGrid * | db, |
Model * | model, | ||
const SimuFFTParam & | param, | ||
const VectorDouble & | sigma, | ||
int | seed, | ||
bool | verbose | ||
) |
Calculate the change of support coefficients by FFT method in the lognormal case on a grid
[in] | db | Db structure |
[in] | model | Model structure |
[in] | param | SimuFFTParam structure |
[in] | sigma | Array of logarithmic variances |
[in] | seed | Seed for random number generator |
[in] | verbose | Verbose flag |
int simfft | ( | DbGrid * | db, |
Model * | model, | ||
SimuFFTParam & | param, | ||
int | nbsimu, | ||
int | seed, | ||
int | verbose, | ||
const NamingConvention & | namconv | ||
) |
Perform the non-conditional simulation by FFT method on a grid
[in] | db | Db structure |
[in] | model | Model structure |
[in] | param | SimuFFTParam structure |
[in] | nbsimu | Number of simulations |
[in] | seed | Value of the seed |
[in] | verbose | Verbose flag |
[in] | namconv | Naming Convention |