summary.vol_encoding: Summarise the cost of the transfer

View source: R/encode.R

summary.vol_encodingR Documentation

Summarise the cost of the transfer

Description

Reports where in the range of the field the quantisation error falls, which a single root mean square figure hides.

Usage

## S3 method for class 'vol_encoding'
summary(object, bins = 10L, ...)

Arguments

object

A vol_encoding.

bins

Number of value bins the error is summarised over.

...

Ignored.

Details

Summarise the cost of the transfer

A monotone transfer costs more where it is flat. The square-root transfer is flat at the top of the range, so the worst errors sit in the tail, and the table below says by how much. Compare the worst error in a bin against the width of the colour bands a reader will see: an error well under one band cannot move a cell into the wrong colour.

Value

An object of class summary.vol_encoding, holding the transfer record and a data frame of one row per bin with the count, the mean error and the worst error in that bin.

See Also

vol_encode() for the constructor, print.vol_encoding() and plot.vol_encoding() for the other methods, vol_payload() for the step that writes these codes into images.

Examples

data(med_mhw)
summary(vol_encode(vol_resample(med_mhw)))

volumr documentation built on Dec. 2, 2026, 5:07 p.m.