Learn R Programming

EFDR (version 1.3)

test_image: Create a test image

Description

This function generates an image for test purposes. The image is that of a filled circle at the centre.

Usage

test_image(h = 1, r = 10, n1 = 64, n2 = 64)

Value

List with two elements

z

the test image

signal.grid

the x-y grid in long table format

Arguments

h

amplitude of the filled circle

r

radius of the circle (in pixels)

n1

image height in pixels

n2

image width in pixels

References

Shen, X., Huang, H.-C., and Cressie, N. 'Nonparametric hypothesis testing for a spatial signal.' Journal of the American Statistical Association 97.460 (2002): 1122-1140.

Examples

Run this code
Z <- test_image()$z

Run the code above in your browser using DataLab