Description Objects from the Class Slots Methods Note Author(s) See Also Examples
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
:a numeric value specifying the minimum support of a sequence (default 0.1, range [0,1]).
maxsize
:an integer value specifying the maximum number of items of an element of a sequence (default 10, range > 0).
maxlen
:an integer value specifying the maximum number of elements of a sequence (default 10, range > 0).
mingap
:an integer value specifying the minimum time difference between consecutive elements of a sequence (default none, range >= 1).
maxgap
:an integer value specifying the maximum time difference between consecutive elements of a sequence (default none, range >= 0).
maxwin
:an integer value specifying the maximum time difference between any two elements of a sequence (default none, range >= 0).
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
.
1 2 3 4 5 6 7 |
Loading required package: arules
Loading required package: Matrix
Attaching package: 'arules'
The following objects are masked from 'package:base':
abbreviate, write
set of 3 spade parameters
support : 0.1
maxlen : 10
maxwin : 5
support maxlen maxwin
0.1 10.0 5.0
name value
1 support 0.1
2 maxlen 10
3 maxwin 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.