类 Sequence

java.lang.Object
weka.associations.gsp.Sequence
所有已实现的接口:
Serializable, Cloneable, RevisionHandler

public class Sequence extends Object implements Cloneable, Serializable, RevisionHandler
Class representing a sequence of elements/itemsets.
版本:
$Revision: 1.2 $
作者:
Sebastian Beer
另请参阅:
  • 构造器详细资料

    • Sequence

      public Sequence()
      Constructor.
    • Sequence

      public Sequence(FastVector elements)
      Constructor accepting a set of elements as parameter.
      参数:
      elements - the Elements of the Sequence
    • Sequence

      public Sequence(int supportCount)
      Constructor accepting an int value as parameter to set the support count.
      参数:
      supportCount - the support count to set
  • 方法详细资料

    • aprioriGen

      public static FastVector aprioriGen(FastVector kMinusOneSequences) throws CloneNotSupportedException
      Generates all possible candidate k-Sequences and prunes the ones that contain an infrequent (k-1)-Sequence.
      参数:
      kMinusOneSequences - the set of (k-1)-Sequences, used for verification
      返回:
      the generated set of k-candidates
      抛出:
      CloneNotSupportedException
    • deleteInfrequentSequences

      public static FastVector deleteInfrequentSequences(FastVector sequences, long minSupportCount)
      Deletes Sequences of a given set which don't meet the minimum support count threshold.
      参数:
      sequences - the set Sequences to be checked
      minSupportCount - the minimum support count
      返回:
      the set of Sequences after deleting
    • oneElementsToSequences

      public static FastVector oneElementsToSequences(FastVector elements)
      Converts a set of 1-Elements into a set of 1-Sequences.
      参数:
      elements - the set of 1-Elements
      返回:
      the set of 1-Sequences
    • printSetOfSequences

      public static void printSetOfSequences(FastVector setOfSequences)
      Prints a set of Sequences as String output.
      参数:
      setOfSequences - the set of sequences
    • setOfSequencesToString

      public static String setOfSequencesToString(FastVector setOfSequences, Instances dataSet, FastVector filterAttributes)
      Returns a String representation of a set of Sequences where the numeric value of each event/item is represented by its respective nominal value.
      参数:
      setOfSequences - the set of Sequences
      dataSet - the corresponding data set containing the header information
      filterAttributes - the attributes to filter out
      返回:
      the String representation
    • updateSupportCount

      public static void updateSupportCount(FastVector candidates, FastVector dataSequences)
      Updates the support count of a set of Sequence candidates according to a given set of data sequences.
      参数:
      candidates - the set of candidates
      dataSequences - the set of data sequences
    • clone

      public Sequence clone()
      Returns a deep clone of a Sequence.
      返回:
      the cloned Sequence
    • equals

      public boolean equals(Object obj)
      Checks if two Sequences are equal.
      覆盖:
      equals 在类中 Object
      返回:
      true, if the two Sequences are equal, else false
    • toNominalString

      public String toNominalString(Instances dataSet)
      Returns a String representation of a Sequences where the numeric value of each event/item is represented by its respective nominal value.
      参数:
      dataSet - the corresponding data set containing the header information
      返回:
      the String representation
    • toString

      public String toString()
      Returns a String representation of a Sequence.
      覆盖:
      toString 在类中 Object
      返回:
      the String representation
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision