sfaStep | R Documentation |
sfaStep() updates the current step of the SFA algorithm. Depending on sfaList$deg
it calls either sfa1Step
or sfa2Step
to do the main work.
See further documentation there
sfaStep(sfaList, arg, step = NULL, method = NULL)
sfaList |
A list that contains all information about the handled sfa-structure |
arg |
Input data, each column a different variable |
step |
Specifies the current SFA step. Must be given in the right sequence:
for SFA1 objects: "preprocessing", "sfa" |
method |
Method to be used: For |
list sfaList
taken from the input, with new information added to this list.
See sfa1Step
or sfa2Step
for details.
sfa1Step
sfa2Step
sfa1Create
sfa2Create
sfaExecute
## Suppose you have divided your training data into two chunks, ## DATA1 and DATA2. Let the number of input dimensions be N. To apply ## SFA on them write: ## Not run: sfaList = sfa2Create(N,xpDim(N)) sfaList = sfaStep(sfaList, DATA1, "preprocessing") sfaList = sfaStep(sfaList, DATA2) sfaList = sfaStep(sfaList, DATA1, "expansion") sfaList = sfaStep(sfaList, DATA2) sfaList = sfaStep(sfaList, NULL, "sfa") output1 = sfaExecute(sfaList, DATA1) output2 = sfaExecute(sfaList, DATA2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.