#include <SimuSpectral.hpp>
Class for operating the Spectral simulations
Public Member Functions | |
| SimuSpectral (const Model *model=nullptr) | |
| SimuSpectral (const SimuSpectral &r) | |
| SimuSpectral & | operator= (const SimuSpectral &r) |
| virtual | ~SimuSpectral () |
| Id | simulate (Id ns, Id seed=4273, bool verbose=false, Id nd=100) |
| Id | compute (Db *dbout, Id iuid=0, bool verbose=false, const NamingConvention &namconv=NamingConvention("Simu")) |
| void | setModel (const Model *&model) |
| void | setNdim (Id ndim) |
| void | setNs (Id ns) |
Static Public Member Functions | |
| static bool | isValidForSpectral (const Model *model) |
| gstlrn::SimuSpectral::SimuSpectral | ( | const Model * | model = nullptr | ) |
| gstlrn::SimuSpectral::SimuSpectral | ( | const SimuSpectral & | r | ) |
|
virtual |
| Id gstlrn::SimuSpectral::compute | ( | Db * | dbout, |
| Id | iuid = 0, |
||
| bool | verbose = false, |
||
| const NamingConvention & | namconv = NamingConvention("Simu") |
||
| ) |
Compute the simulation on Dbout using Spectral Method
| dbout | Db containing the results |
| iuid | Address for storage (or 0 if the variable must be created locally) |
| verbose | Verbose flag |
| namconv | Naming convention (only used when 'iuid' == 0) |
|
static |
| SimuSpectral & gstlrn::SimuSpectral::operator= | ( | const SimuSpectral & | r | ) |
|
inline |
|
inline |
|
inline |
Perpare the simulation context (This method works for Rn and Sphere)
| ns | Number of components |
| seed | Seed for random number generation 5à: avoid setting the seed) |
| verbose | Verbose flag |
| nd | Number of discretization of the spectrum |