org.knowceans.topics.cgen
Class MixSequence

java.lang.Object
  extended by org.knowceans.topics.cgen.MixSequence

public class MixSequence
extends java.lang.Object

sequence along which variables are sampled


Nested Class Summary
(package private) static class MixSequence.InterSeq
           
 
Field Summary
(package private)  java.util.List<MixEdge> edges
           
(package private)  java.lang.String m
           
(package private)  java.lang.String M
           
(package private)  java.lang.String Mq
           
(package private)  java.lang.String n
           
(package private)  java.lang.String name
           
(package private)  java.lang.String Nm
           
(package private)  java.lang.String Nmq
           
(package private)  java.lang.String s
           
(package private)  java.util.List<MixSequence> subseqs
           
(package private)  MixSequence supseq
           
(package private)  java.lang.String w
           
(package private)  java.lang.String W
           
(package private)  java.lang.String wq
           
(package private)  java.lang.String Wq
           
 
Constructor Summary
MixSequence(java.lang.String name, java.lang.String m, java.lang.String n, java.lang.String M, java.lang.String Nm, java.lang.String W, java.lang.String w, boolean queries)
          Create new data sequence
 
Method Summary
 java.lang.String countTokens()
           
 java.lang.String declareTokenCounts()
          count the tokens in this sequence, possibly also its query part
 MixSequence.InterSeq intersection(MixSequence seq)
          analyses the intersection of this sequence with the argument.
 java.lang.String printDetails()
          print detailed information on this sequence
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

java.lang.String name

w

java.lang.String w

wq

java.lang.String wq

m

java.lang.String m

n

java.lang.String n

s

java.lang.String s

subseqs

java.util.List<MixSequence> subseqs

supseq

MixSequence supseq

edges

java.util.List<MixEdge> edges

M

java.lang.String M

Mq

java.lang.String Mq

Nm

java.lang.String Nm

Nmq

java.lang.String Nmq

W

java.lang.String W

Wq

java.lang.String Wq
Constructor Detail

MixSequence

public MixSequence(java.lang.String name,
                   java.lang.String m,
                   java.lang.String n,
                   java.lang.String M,
                   java.lang.String Nm,
                   java.lang.String W,
                   java.lang.String w,
                   boolean queries)
Create new data sequence

Parameters:
name -
m -
n -
M -
Nm -
w -
queries - whether a query data set is available, creating wq, Mq, Nmq and Wq
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

printDetails

public java.lang.String printDetails()
print detailed information on this sequence

Returns:

declareTokenCounts

public java.lang.String declareTokenCounts()
count the tokens in this sequence, possibly also its query part

Returns:

intersection

public MixSequence.InterSeq intersection(MixSequence seq)
analyses the intersection of this sequence with the argument. Result values are: 0 = no intersection, 1 = identical, 2 = same major index m, unrelated minor index n, 3 = seq.n is aggregated by this.n, 4 = seq.n aggregates this.n

Parameters:
seq -
Returns:

countTokens

public java.lang.String countTokens()