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

Fractional gaussian noise context. More...

#include <libfbm.hpp>

Inheritance diagram for libfbm::FGNContext:
libfbm::SGPContext libfbm::FWSContext

List of all members.

Public Member Functions

 FGNContext (double H, const zvec &dim)
double cov (const zvec &zvec)
 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

Fractional gaussian noise context.

The covariance function is

\[ \rho\!\left(\mathbf{r}\right)=\prod_{i=1}^{d}\frac{1}{2}\left[\left|r_i-1\right|^{2H}-2\left|r_i\right|^{2H}+\left|r_i+1\right|^{2H}\right], \]

where $ 0<H<1 $. See [4]. For 1D cases the generated process is the increment process of fractional Brownian motion.

Definition at line 695 of file libfbm.hpp.


Constructor & Destructor Documentation

libfbm::FGNContext::FGNContext ( double  H,
const zvec dim 
)

Member Function Documentation

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

Covariance function.

Implements libfbm::SGPContext.


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