SPparameter-class {arulesSequences} | R Documentation |
Provides the constraint parameters for the cSPADE algorithm for mining frequent sequences.
A suitable default parameter object will be automatically created
by a call to cspade
. However, the values can be replaced
by specifying a named list with the names (partially) matching the
slot names of the SPparameter
class.
Objects can be created by calls of the form
new("SPparameter", support, ...)
.
support
:maxsize
:maxlen
:mingap
:maxgap
:maxwin
:coerce
signature(from = "NULL", to = "SPparameter")
coerce
signature(from = "list", to = "SPparameter")
coerce
signature(from = "SPparameter, to = "character")
coerce
signature(from = "SPparameter, to = "data.frame")
coerce
signature(from = "SPparameter, to = "list")
coerce
signature(from = "SPparameter, to = "vector")
format
signature(x = "SPparameter)
User-supplied values are silently coerced to the target class, e.g.
integer
.
Parameters with no (default) value are not supplied to the mining
algorithm, i.e., take the default values implemented there. A value
can be unset using NULL
.
Christian Buchta
Class
SPcontrol
,
function
cspade
.
## coerce from list p <- as(list(maxsize = NULL, maxwin = 5), "SPparameter") p ## coerce to as(p, "vector") as(p, "data.frame")