shave: Shaves a matrix

Description Usage Arguments

View source: R/domestic.R

Description

Ie, everything above max is set to max; everything below min is set to min. Used to avoid grey levels below 0 or above 1 when reconstructing faces, and consequently avoid errors with plot method. That explains white or dark areas on extreme PC ranges.

Usage

1
shave(m, max = 1, min = 0)

Arguments

m

matrix to shave

max

the ceiling

min

the floor


vbonhomme/eigenfaces documentation built on May 3, 2019, 4:35 p.m.