libfbm  0.3
Simulation of multi-dimensional stationary Gaussian processes and fractional Brownian motion.
 All Classes Namespaces Functions Variables Friends
Public Member Functions
libfbm::PowerLawContext Class Reference

Power law covariance context. More...

#include <libfbm.hpp>

Inheritance diagram for libfbm::PowerLawContext:
libfbm::SGPContext

List of all members.

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 zvecgetDim () const
 Get the usable dimension of the generated field.
const zvecgetFieldDim () 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.

Detailed Description

Power law covariance context.

\[ \rho\!\left(\mathbf{r}\right)=\left|\mathbf{r}\right|^{2H}, \]

where $H<0$.

Definition at line 996 of file libfbm.hpp.


Constructor & Destructor Documentation

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 $H << 0$. Note that as H approaches 0 the field becomes distorted. H=0.01 should still be quite fine.


Member Function Documentation

double libfbm::PowerLawContext::cov ( const zvec p)
virtual

Covariance function.

Implements libfbm::SGPContext.


The documentation for this class was generated from the following file: