#include <SPDE.hpp>
The SPDE class provides the SPDE implementation of a univariate model defined by the sum of a nugget effect and Matern's models. Its main objectives are:
Public Member Functions | |
SPDE (const Db *dbin, Model *model, bool flagKrig, bool flagSimu, Id useCholesky=-1, const SPDEParam ¶ms=SPDEParam(), const Db *domain=nullptr) | |
SPDE (const SPDE &r)=delete | |
SPDE & | operator= (const SPDE &r)=delete |
virtual | ~SPDE () |
bool | getFlagCholesky () const |
bool | getFlagKrig () const |
bool | getFlagSimu () const |
const VectorMeshes & | getMeshesK () const |
const VectorMeshes & | getMeshesS () const |
const ProjMultiMatrix * | getAinK () const |
const ProjMultiMatrix * | getAinS () const |
const ProjMultiMatrix * | getAoutK () const |
const ProjMultiMatrix * | getAoutS () const |
getDriftCoefficients () const | |
Id | getSeed () const |
Id | getNMC () const |
const SPDEOp * | getSPDEOp () const |
const MatrixSparse * | getQ () const |
const MatrixSparse * | getProj () const |
const PrecisionOpMulti * | getPrecisionKrig () const |
const MatrixSparse * | getInvNoise () const |
Id | defineSpdeOperator (bool verbose=false) |
Id | centerDataByDriftInPlace (1 &Z, bool verbose=false) |
void | uncenterResultByDriftInPlace (1 &result) const |
void | addNuggetToResult (1 &result) const |
Simulate nugget component and add it to one multivariate simulation. | |
Id | setMeshes (bool flagForKrig, const VectorMeshes *meshes) |
Id | setProjIn (bool flagForKrig, const ProjMultiMatrix *proj) |
Id | setInvNoise (const ASimulable *invnoise) |
Id | setDbAndProjOut (Db *dbout, const ProjMultiMatrix *projK=nullptr, const ProjMultiMatrix *projS=nullptr, bool flagApply=true, bool verbose=false) |
Define the output Db as well as specific Projection matrices (optional) | |
Id | makeReady (bool verbose=false) |
getData (bool flagCenter, bool verbose=false) | |
kriging (const 1 &Z) const | |
stdev (const 1 &Z) const | |
simulate (const 1 &Z) const | |
double | loglikelihood (const 1 &Z, bool verbose=false) const |
gstlrn::SPDE::SPDE | ( | const Db * | dbin, |
Model * | model, | ||
bool | flagKrig, | ||
bool | flagSimu, | ||
Id | useCholesky = -1 , |
||
const SPDEParam & | params = SPDEParam() , |
||
const Db * | domain = nullptr |
||
) |
The class constructor with the following arguments:
dbin | Input file (nullptr for non conditional simulation) |
model | This compulsory argument is a LMC of Matern's (or Markov?) basic structures with possibly a nugget effect |
flagKrig | TRUE for Kriging (or conditional simulation) |
flagSimu | TRUE for simulations (either conditional or non-conditional) |
useCholesky | Define the choice regarding Cholesky |
params | Set of SPDE parameters |
domain | Db used to define the domain for meshing (in union with dbin) |
|
delete |
|
virtual |
void gstlrn::SPDE::addNuggetToResult | ( | 1 & | result | ) | const |
Simulate nugget component and add it to one multivariate simulation.
result | The array containing ONE multivariate simulation |
Id gstlrn::SPDE::centerDataByDriftInPlace | ( | 1 & | Z, |
bool | verbose = false |
||
) |
Id gstlrn::SPDE::defineSpdeOperator | ( | bool | verbose = false | ) |
|
inline |
|
inline |
|
inline |
|
inline |
gstlrn::SPDE::getData | ( | bool | flagCenter, |
bool | verbose = false |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
const MatrixSparse * gstlrn::SPDE::getInvNoise | ( | ) | const |
|
inline |
|
inline |
|
inline |
const PrecisionOpMulti * gstlrn::SPDE::getPrecisionKrig | ( | ) | const |
const MatrixSparse * gstlrn::SPDE::getProj | ( | ) | const |
const MatrixSparse * gstlrn::SPDE::getQ | ( | ) | const |
|
inline |
|
inline |
gstlrn::SPDE::kriging | ( | const 1 & | Z | ) | const |
double gstlrn::SPDE::loglikelihood | ( | const 1 & | Z, |
bool | verbose = false |
||
) | const |
Id gstlrn::SPDE::makeReady | ( | bool | verbose = false | ) |
Id gstlrn::SPDE::setDbAndProjOut | ( | Db * | dbout, |
const ProjMultiMatrix * | projK = nullptr , |
||
const ProjMultiMatrix * | projS = nullptr , |
||
bool | flagApply = true , |
||
bool | verbose = false |
||
) |
Define the output Db as well as specific Projection matrices (optional)
dbout | Pointer of the output 'Db' |
projK | Projection matrix for Kriging (optional) |
projS | Projection matrix for Simulations (optional) |
flagApply | see Notes |
verbose | Verbose flag |
Id gstlrn::SPDE::setInvNoise | ( | const ASimulable * | invnoise | ) |
Id gstlrn::SPDE::setMeshes | ( | bool | flagForKrig, |
const VectorMeshes * | meshes | ||
) |
Id gstlrn::SPDE::setProjIn | ( | bool | flagForKrig, |
const ProjMultiMatrix * | proj | ||
) |
gstlrn::SPDE::simulate | ( | const 1 & | Z | ) | const |
gstlrn::SPDE::stdev | ( | const 1 & | Z | ) | const |
void gstlrn::SPDE::uncenterResultByDriftInPlace | ( | 1 & | result | ) | const |