pupilrms: Wavefront statistics

View source: R/pupil.r

pupilrmsR Documentation

Wavefront statistics

Description

Compute basic statistics of wavefronts stored in "pupil" objects.

Usage

pupilrms(pupil)
pupilpv(pupil)
strehlratio(rms)

Arguments

pupil

A matrix of class "pupil"

rms

An rms wavefront error

Value

Estimates of the RMS and P-V wavefront errors. strehratio calculates Mahajan's approximation to the Strehl ratio.

Note

pupilrms simply calculates the standard deviation of finite values in the matrix pupil. This is a crude, but usually accurate enough estimate of the true RMS wavefront error.

summary.pupil calls these functions.

Author(s)

M.L. Peck mpeck1@ix.netcom.com

References

Schroeder, D.J. 2000, Astronomical Optics, 2nd Edition, Academic Press, chapter 10.

See Also

summary.pupil.

Examples

zcoef <- rnorm(length(makezlist()$n), 0, 0.01)
wf <- pupil(zcoef=zcoef)
plot(wf)
summary(wf)
sqrt(crossprod(zcoef)) # A more accurate estimate of RMS

mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.