ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.multidimensionalsequentialpatterns
Class MDSequence
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.multidimensionalsequentialpatterns.MDSequence
-
public class MDSequence extends java.lang.ObjectImplementation of a "MultiDimensional-Sequence" used by the SeqDim algorithm (Pinto et al., 2001).
An MD-Sequence is associated to a MD-Database.
An MD-Sequence has two parts: an mdpattern (the values for each dimension) and a sequence.- See Also:
MDSequenceDatabase,MDPattern,Sequence,AlgoSeqDim,AlgoFournierViger08
-
-
Constructor Summary
Constructors Constructor and Description MDSequence(int id, MDPattern mdpattern, Sequence sequence)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetAbsoluteSupport()Get the support of this MD-sequence as an integer (mdsequence count)java.lang.StringgetFormattedRelativeSupport(int databaseSize)Get the support of this MD-sequence as a percentage with five decimals (String)intgetId()Get the ID of this md-sequenceMDPatterngetMdpattern()Get the MDPattern in this md-sequencedoublegetRelativeSupport(int databaseSize)Get the support of this MD-sequence as a percentage (double)SequencegetSequence()Get the sequence in this md-sequencevoidprint()Print a String representation of this MD-Sequence to System.outvoidsetSupport(int transactioncount)Set the support of this MDSequencejava.lang.StringtoString()Get a String representation of this MD-Sequence to System.out
-
-
-
Method Detail
-
getSequence
public Sequence getSequence()
Get the sequence in this md-sequence- Returns:
- a Sequence
-
getMdpattern
public MDPattern getMdpattern()
Get the MDPattern in this md-sequence- Returns:
- a MDPattern
-
getId
public int getId()
Get the ID of this md-sequence- Returns:
- an integer
-
getRelativeSupport
public double getRelativeSupport(int databaseSize)
Get the support of this MD-sequence as a percentage (double)- Parameters:
databaseSize- the database size- Returns:
- the support as a double
-
getAbsoluteSupport
public int getAbsoluteSupport()
Get the support of this MD-sequence as an integer (mdsequence count)- Returns:
- the support as an integer
-
getFormattedRelativeSupport
public java.lang.String getFormattedRelativeSupport(int databaseSize)
Get the support of this MD-sequence as a percentage with five decimals (String)- Parameters:
databaseSize- the database size- Returns:
- the support as a double
-
print
public void print()
Print a String representation of this MD-Sequence to System.out
-
toString
public java.lang.String toString()
Get a String representation of this MD-Sequence to System.out- Overrides:
toStringin classjava.lang.Object- Returns:
- a String
-
setSupport
public void setSupport(int transactioncount)
Set the support of this MDSequence- Parameters:
transactioncount- the support as an integer value (as asequence count).
-
-
DMelt 3.0 © DataMelt by jWork.ORG