libfbm
0.3
Simulation of multi-dimensional stationary Gaussian processes and fractional Brownian motion.
|
Power law covariance context. More...
#include <libfbm.hpp>
Public Member Functions | |
PowerLawContext (double H, const zvec &dim, double Var=2.0) | |
Constructor. | |
double | cov (const zvec &dim) |
Covariance function. | |
Public Member Functions inherited from libfbm::SGPContext | |
SGPContext (const zvec &fieldDim, const zvec &userDim, const std::string &cacheName) | |
Constructor. | |
virtual | ~SGPContext () |
const zvec & | getDim () const |
Get the usable dimension of the generated field. | |
const zvec & | getFieldDim () const |
Get the physical dimension of the generated field. | |
void | setCacheDir (const std::string &cacheDir) |
Set the cache directory. | |
size_t | badEigenCount () const |
Return the number of bad eigenvalues encountered. | |
bool | initCache (bool forceRecalc=false) |
Initialize the cache. |
Additional Inherited Members | |
Protected Member Functions inherited from libfbm::SGPContext | |
virtual void | postProcess (Field &field, GaussianGenerator &rng) |
Postprocessor called after field generation. | |
void | setScaleResult (double f) |
Scale the output values by factor f. |
libfbm::PowerLawContext::PowerLawContext | ( | double | H, |
const zvec & | dim, | ||
double | Var = 2.0 |
||
) |
Constructor.
Var determines the variance or cov(0). This parameter strongly affects whether circular matrix embedding works or not. You can decrease this to 1 when . Note that as H approaches 0 the field becomes distorted. H=0.01 should still be quite fine.
|
virtual |
Covariance function.
Implements libfbm::SGPContext.