#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 () |
| int | simulate (int ns, int seed=4273, bool verbose=false, int nd=100) |
| int | compute (Db *dbout, int iuid=0, bool verbose=false, const NamingConvention &namconv=NamingConvention("Simu")) |
| bool | isValidForSpectral (const Model *model) const |
| void | setModel (const Model *&model) |
| void | setNdim (int ndim) |
| void | setNs (int ns) |
| SimuSpectral::SimuSpectral | ( | const Model * | model = nullptr | ) |
| SimuSpectral::SimuSpectral | ( | const SimuSpectral & | r | ) |
|
virtual |
| int SimuSpectral::compute | ( | Db * | dbout, |
| int | 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) |
| bool SimuSpectral::isValidForSpectral | ( | const Model * | model | ) | const |
| SimuSpectral & SimuSpectral::operator= | ( | const SimuSpectral & | r | ) |
|
inline |
|
inline |
|
inline |
| int SimuSpectral::simulate | ( | int | ns, |
| int | seed = 4273, |
||
| bool | verbose = false, |
||
| int | nd = 100 |
||
| ) |
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 |