Code covered by the BSD License  

Highlights from
Random Field Simulation

5.0

5.0 | 3 ratings Rate this file 64 Downloads (last 30 days) File Size: 6.52 KB File ID: #27613
image thumbnail

Random Field Simulation

by Paul Constantine

 

14 May 2010 (Updated 26 Apr 2012)

Generate multivariate conditional random fields given a mesh and covariance information.

| Watch this File

File Information
Description

Given a list of d-dimensional points -- typically, though not necessarily, representing a mesh -- and correlation information, the function randomfield.m returns realizations of a corresponding random process. These fields may be conditioned on known data values.

The correlation information can be:
- one of three parameterized models,
- a given correlation matrix with dimensions corresponding to the number of mesh points,
- a matrix of "snapshots" of an unknown process.

The function can also return a struct with the Karhunen-Loeve bases for further field generation and filtering. See the options described in the help for more details.

When data is given for the field realizations to interpolate, the returned mean is the ordinary kriging approximation.

If you have the parallel computing toolbox and more than one core, this will go faster.

Copyright Paul G. Constantine and Qiqi Wang.

MATLAB release MATLAB 7.13 (2011b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
01 Apr 2011 Felipe G. Nievinski  
16 Sep 2011 João  
12 Apr 2012 Songhun  
26 Apr 2012 Paul Constantine

Just fixed a few bugs. It should respect the data points now.

Please login to add a comment or rating.
Updates
14 May 2010

Fixed a bug when computing the covariance matrix from snapshots.

05 Dec 2011

Latest version incorporates a low-memory option for large meshes. However, it is slow.

Performance is substantially improved when using the Parallel Computing Toolbox. The scripts use parfor to construct the correlation matrix.

26 Apr 2012

Learned to use zip.

Tag Activity for this File
Tag Applied By Date/Time
gaussian process Paul Constantine 14 May 2010 13:45:23
kriging Paul Constantine 14 May 2010 13:45:24
conditional random field Paul Constantine 14 May 2010 13:45:24
stochastic process Paul Constantine 14 May 2010 13:45:24
karhunenloeve Paul Constantine 14 May 2010 13:45:24
kriging yuli zhang 15 Mar 2011 02:19:57
operable yuli zhang 15 Mar 2011 02:31:03
ordinary kriging Paul Constantine 06 Dec 2011 08:53:54
conditional random field Kevin 20 May 2012 13:54:23
gaussian process Kevin 20 May 2012 13:54:27

Contact us at files@mathworks.com