Inheritance diagram for kddml.Core.DataMining.SequentialPatterns.Sequence:
A sequence must contain at least one element. To force this concept, basic constructor require a SequenceElementManager as parameter. Each following element, must be preceded by a delimiter, that specify the kind of relation between the elements. Again, here, to force this concept, the addElement() method, require both delimiter and element.
Title: KDDML
Description: Knowledge Discovery in Database Environment
Copyright: Copyright (c) 2004
Company: Universita' di Pisa - Dipartimento di Informatica
|
Builds a sequence with one element.
|
|
Builds a new sequence composed by elements present in given sequence. Support and occurrence are the same as given sequence.
|
|
Adds an element to this sequence. The DEFAULT delimiter (see DelimiterType) is added between given and previous element.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Adds an element to this sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Check if given data sequence support this sequence. For each element e in this sequence, there is a transaction t such that e.isSupported(t) holds true, and is respected element order. E.g. s = (e1)...(em); d = (t1)...(tn) 1) m <= n 2) e(1).isSupported(ti) => e(2).isSupported(tj) , j > i
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
This method return only those transactions (and relative items, i.e. only items in transactions that match items in sequence elements) in given data sequence, that support the sequence. If a sequence is not supported by given data sequence, this method return null.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
This method return only those transactions in given data sequence, that support the sequence. Differently from coveringTransactions() method, this method return all items in those transactions, i.e. not only items in transaction that match items in sequence elements. If sequence is not support by given data sequence, this method return null. This method works exactly as isSupported(DataSequenceManager dseq), except that instead of only checking which transactions support sequence elements, it return those transactions.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Check if given sequence is contained in this one, i.e. if given sequence is a subset of this one. This method, also return true, if given sequence is equals to this one.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Check if given sequence element belong to this sequence. This method return only if sequence element is equal to one in this sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Test if two sequence are equals. To be equals, sequences must have the same elements in the same order, and the same delimiters between elements.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return the numbers of element in this sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return the numbers of items in all element of this sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return the numbers of objects in the data for which this sequence holds true.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return an iterator over all object in sequence; this include both elements and delimiters. Objects are returned in the order as they are added to the sequence. Remember that each sequence element, except the last, is followed by a DelimiterManager, so a sequence iterator return a sequence of objects like: seq_element_obj, delimiter_obj, seq_element_obj, delimiter_obj, ...
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return an iterator over all elements in sequence. Delimiters object excluded. Elements are returned in the order as they are added to the sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return the ratio of the number of objects in the data for which this sequence holds true, to the total number of objects in the data.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Update number of occurrence
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Update sequence support. Support must between 0 and 1 inclusive.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return a string representation of this object.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return a subsequence starting at index "from" inclusive and ending at index "to" excluded. Returned sequence doesn't have neither support nor occurence. Index range is [0 - number of elements]. Calling sequence.subSequence(0, sequence.getNumberOfElements()) return a copy of sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return delimiter object that precedes element with specified index. This method could be useful in conjunction with subSequence() method. Index range is [0, number of elements].
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Append a sequence to the end of this one. Delimiter is used between old and new sequence elements.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Append a sequence to the end of this one. The DEFAULT delimiter (see DelimiterType) is added between given and previous sequence.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Make a shallow copy of this sequence. Copy a sequence, mean copy the structure, support and occurrence; elements themselves are not copied.
Implements kddml.Core.DataMining.SequentialPatterns.SequenceManager. |
|
Return the hash code of this sequence.
|
|
Return a representation of this sequence as an Instance. The instance have 6 fields representing:
This method check if the given dataset is compatible with the instance. Valid dataset must have at least following attribute: Attribute attr1 = new Attribute("sequence", null); Attribute attr2 = new Attribute("sequence_support"); Attribute attr3 = new Attribute("sequence_cardinality"); Attribute attr4 = new Attribute("sequence_distinct_items_cardinality"); Attribute attr5 = new Attribute("max_number_of_items_per_set"); FastVector attributes = new FastVector(); attributes.addElement(attr1); attributes.addElement(attr2); attributes.addElement(attr3); attributes.addElement(attr4); attributes.addElement(attr5); Instances ris = new Instances("instances_name", attributes, 0); Attributes may have any order. If given dataset contain other attributes, they are ignored; this mean that attributes value remain undefined. Note that overriding this method, following methods must be overrided too:
|
|
Transform an instance into a sequence object. Given instance must have at least 2 fields, representing:
|