psiLinearInverse: psiLinearInverse

Description Usage Arguments Value See Also Examples

Description

Creates mappings from -inf:+inf -> -inf:+inf, with a linear transformation mechanism

Usage

1
psiLinearInverse(warpedStimuli, shift = 0, scaling = 1)

Arguments

warpedStimuli

a vector of stimuli, between -inf and inf

shift

A scalar by which to (positively) offset the scaled values, or a list or vector of scalars

scaling

A scalar multiplier to the (unshifted) values, or a list or vector of scalars

Value

A vector containing unwarped stimuli

See Also

psiIdentity, psiLogOdds, psiPrelec, psiLog, psiLinear

Examples

1
2
3
4
psiLinear(c(0.1, 0.2, 0.3))
psiLinear(-10:10)
psiLinear(-10:10, shift=10, scaling=2)
-10:10 %>% psiLinear(shift=2, scaling=0.5)

dlandy/WarpedBayes documentation built on May 29, 2019, 2:49 p.m.