getpval: Computes a p-value for the output of the test for...

Description Usage Arguments Value Author(s) References See Also Examples

Description

Computes and returns a p-value from the output of the bootstrap test for stationarity.

Usage

1
getpval(statvec, verbose = TRUE)

Arguments

statvec

A vector of test statistics, such as that given by TOS2D. The first value must be the value of the test statistic for the original image.

verbose

If TRUE then the p-value is printed and a sentance declaring "stationary" or "not stationary" is printed.

Value

p

The p-value of the test.

Author(s)

Sarah L. Taylor

References

Taylor, S.L., Eckley, I.A., and Nunes, M.A. (2014) A Test of Stationarity for Textured Images. Technometrics, 56 (3), 291-301.

See Also

TOS2D

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#Generate a stationary image

testimage <- matrix(rnorm(64*64), nrow=64, ncol=64)

# Run test of stationarity

## Not run: TestofStat<-TOS2D(testimage)

# Obtain p-value

getpval(TestofStat$samples)

## End(Not run)

nunesmatt/LS2Wstat documentation built on May 15, 2019, 3:34 p.m.