SPparameter-class

0th

Percentile

Class "SPparameter" --- cSPADE Mining Parameters

Provides the constraint parameters for the cSPADE algorithm for mining frequent sequences.

Keywords
classes
Note

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.

Objects from the Class

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, ...).

Slots

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).

Methods

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")

See Also

Class '>SPcontrol, function cspade.

Aliases
  • SPparameter-class
  • coerce,NULL,SPparameter-method
  • coerce,list,SPparameter-method
  • coerce,SPparameter,character-method
  • coerce,SPparameter,data.frame-method
  • coerce,SPparameter,list-method
  • coerce,SPparameter,vector-method
  • format,SPparameter-method
  • initialize,SPparameter-method
  • show,SPparameter-method
Examples
# NOT RUN {
## coerce from list 
p <- as(list(maxsize = NULL, maxwin = 5), "SPparameter")
p

## coerce to
as(p, "vector")
as(p, "data.frame")
# }
Documentation reproduced from package arulesSequences, version 0.2-19, License: GPL-2

Community examples

Looks like there are no examples yet.