Skip to contents

S3 generic extending sd to support Image objects. Non-Image inputs delegate to stats::sd.

Usage

sd(x, ...)

# Default S3 method
sd(x, na.rm = FALSE, ...)

# S3 method for class 'Image'
sd(x, ...)

Arguments

x

An Image object, or a numeric vector for the default method.

...

Additional arguments passed to methods.

na.rm

Logical; should missing values be removed? Passed to stats::sd for non-Image objects (ignored for Image).

Value

For Image inputs, a numeric vector of per-channel standard deviations. For other inputs, the result of sd.

See also