uniform.test: Uniform Distribution Test

View source: R/uniform.test.R

uniform.testR Documentation

Uniform Distribution Test

Description

Tests whether a histogram is significantly different from a uniform distribution.

Usage

uniform.test(hist.output, B = NULL)

Arguments

hist.output

output from a call to hist.

B

number of replicates for chi-squared permutation.

Value

result of chi-squared test.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

x.unif <- runif(100)
uniform.test(hist(x.unif), B = 1000)
x.lnorm <- rlnorm(100)
uniform.test(hist(x.lnorm), B = 1000)


swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.