Generate Ar1 Spatial Data

This script generates artificial spatial data using a first order spatial autoregressive process (AR1)
The process is
X(i,j) = PHI*(X(i,j-1) X(i,j 1) X(i-1,j) X(i 1,j) error
To generate a 10x10, periodic spatial pattern, with normal error distribution, and a variance of SIGMA, the command is
spatialPatternAR1([10,10],PHI,SIGMA)
or equivalently,
spatialPatternAR1([10,10],PHI,SIGMA,1)
the same pattern, but with a rigid boundary is generated with
spatialPatternAR1([10,10],PHI,SIGMA,0)
Different error distributions can be used. Using the current script this can be done by extracting the generator matrix, M
M = spatialPatternAR1([10,10],PHI,SIGMA,1,1)
M is a 100x100 matrix.
Then given a random vector, error (size = 100x1) with indepedent elements sampled from the required error distribution, the spatial pattern is given by
x = reshape(M * error,[10,10]) Requirements:
· MATLAB Release: R13

Related Scripts

  • Generate Spatial Data
    The script generates spatial data with a scale-invariant power spectrum (1/f noise) and a normal error distribution.The spectral density of the data i...
  • Spatial Tools 6.x-1.1-alpha2
    Spatial files can be used for geolocation features and geocoding.Installation:Unpack in your modules folder (usually '/sites/all/modules/')Enable unde...
  • Spatial Query
    Spatial Query's syntax and organization is inspired by jQuery. Here are some key features of "Spatial Query":Functions can handle:· Vectors·...
  • Simple Single-run Fmri Analysis
    This collection of m-files will only get you through the very bear necessities (Look for the ...) of a single-run fMRI-analysis. Its actual aim is to ...
  • Geos 3.1.1
    GEOS (Geometry Engine - Open Source) aims to contain the complete functionality of JTS in C++.This includes all the OpenGIS "Simple Features for SQL" ...
  • Grass Application 6.2.2RC1
    Geographic Resources Analysis Support System, commonly referred to as GRASS GIS, is a Geographic Information System (GIS) used for data management, im...
  • Pysal 1.0.0
    The tool is perfect for developing high level applications for spatial analysis.PySAL is a library, a suite of spatial analytical methods that they ca...
  • 3dcaptcha 1.0.0
    It leverages the human 3D spatial cognition ability in order to differentiate them from a machine.Installation:By default, 3DCaptcha uses PHP's $_SESS...
  • Apache Sis 0.2
    Apache SIS is perfect for representing coordinates for searching, data clustering, archiving, or any other relevant spatial needs.Can be used by spati...
  • Primagis 0.5.1
    PrimaGIS is a mapping solution meant primarily as a spatial extension for Archetypes based objects. The idea is to allow existing Archetypes based obj...
  • Smart Antenna System
    Smart Antenna System Is An Antenna Array Transmitting Or Receiving Signals Processed Using An Adaptation Algorithm ( Spatial Temporal Algorithm ) In O...
  • Statistical Dependence Index
    function [argout1 argout2 argout3 argout4]=sdindex2(data,threshold)calculation of statistical dependence indexINPUTSdata: a two column matrix, each co...
  • Html5 Lipsum Generator 1.0
    Just download, run the app and select what kind of filler content to generate. The outputted text is not in raw format, but already HTML5 formatted. H...
  • Pulse Propagation
    This script simulates the propagation of an electromagnetic pulse in time and 2 spatial dimensions. The resulting movie is a map of the beam profile i...
  • Openfluo
    It can quickly process data and to visualize changes in fluorescence; or it can be used to complete multiple analyses of the data obtained in several ...
  • Gaussian Convolution Filter
    Simple script to apply a gaussian convolution filter to a matrix (e.g. of white noise) to introduce spatial correlation while (generally) preserving t...
  • Pyregion 1.0.1
    It also supports ciao region files.Compass, Ruler and Projection type is ignored. Here are some key features of "pyregion":· DS9 and ciao region ...
  • Py-mysql2pgsql 0.1.5
    It can either create a PostgreSQL-compatible dump file or funnel data directly to a running PostgreSQL server.The script was mostly ported from a simi...
  • Simulink Video Processing A
    Collection of basic examples demonstrating the use of Simulink and DSP Blockset for video signal processing applications. All demos are based on R13 (...
  • Phppggis 4.0.1-3
    phpPgGIS is a PHP Web system to manage PostgreSQL/PostGIS. It was developed under the phpPgAdmin and the MapServer. It's simple and makes easy to mana...
DMCA Notice-Privacy Policy
2004 - 2013 DownScripts. All rights reserved.