Transform objects are simply functions that have been extended to allow for specialized dispatch. All of the ``...Transform'' constructors return functions of this type for use in one of the transformation modalities.

Slots

.Data

Object of class "function"

transformationId

A name for the transformation object

Methods

summary

Return the parameters

See also

Examples

cosTransform <- function(transformId, a=1, b=1){ t = new("transform", .Data = function(x) cos(a*x+b)) t@transformationId = transformId t } cosT <- cosTransform(transformId="CosT",a=2,b=1) summary(cosT)
#> $a #> [1] 2 #> #> $b #> [1] 1 #> #> $t #> transform object 'CosT' #> #> $transformId #> [1] "CosT" #>