Autocon
Jump to navigation
Jump to search
Purpose
Autocontrast routine.
Synopsis
- ascores = autocon(scores,lim)
Description
AUTOCON is useful when the range is defined by only a few samples at the extremes of the distribution. Input (scores) is an M by K matrix that will be "autocontrasted" (it is usually a scores matrix from PCA). AUTOCON first mean centers and scales (scores) to unit variance yielding (ascores).
- ascores > the upper limit lim(2) are replaced by lim(2).
- ascores < the lower limit lim(1) are replaced by lim(1).
INPUTS
- scores = MxK matrix that to be "autocontrasted" (often it is a scores matrix from PCA).
OPTIONAL INPUTS
- lim = a 1 or 2 element vector defining contrast limits (if it is a scalar then the limits are symmetrical: lim = [-lim lim]) {default: lim = [-2.5 2.5]}.