|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.models.discrete.Constraint
de.jstacs.models.discrete.inhomogeneous.InhConstraint
public abstract class InhConstraint
This class is the super class for all inhomogeneous constraints.
| Field Summary | |
|---|---|
protected int[] |
offset
This array is used to find the start indices of the conditional distributions. |
| Fields inherited from class de.jstacs.models.discrete.Constraint |
|---|
counts, freq, usedPositions |
| Constructor Summary | |
|---|---|
InhConstraint(int[] pos,
int[] alphabetLength)
|
|
InhConstraint(StringBuffer xml)
The constructor for saved objects. |
|
| Method Summary | |
|---|---|
protected void |
appendAdditionalInfo(StringBuffer xml)
This method appends additional information that are not stored in the base class to the StringBuffer. |
InhConstraint |
clone()
|
protected void |
extractAdditionalInfo(StringBuffer xml)
This method parses additional information from the StringBuffer that are not parsed in the base class. |
int |
satisfiesSpecificConstraint(Sequence s,
int start)
This method returns the index of the specific constraint that is fullfilled by the sequence beginning at start. |
| Methods inherited from class de.jstacs.models.discrete.Constraint |
|---|
add, add, estimate, estimateUnConditional, getCount, getFreq, getFreq, getMarginalOrder, getNumberOfSpecificConstraints, getPosition, getPositions, getXMLTag, reset, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] offset
| Constructor Detail |
|---|
public InhConstraint(int[] pos,
int[] alphabetLength)
pos - the positionsalphabetLength - the length of each alphabet (not only the used positions)
public InhConstraint(StringBuffer xml)
throws NonParsableException
xml - the representation
NonParsableException - if the StringBuffer could not be parsed.| Method Detail |
|---|
protected void extractAdditionalInfo(StringBuffer xml)
throws NonParsableException
Constraint
extractAdditionalInfo in class Constraintxml - the StringBuffer to parse
NonParsableException - if something with the parsing went wrong
public InhConstraint clone()
throws CloneNotSupportedException
clone in class ConstraintCloneNotSupportedException
public int satisfiesSpecificConstraint(Sequence s,
int start)
Constraintstart.
satisfiesSpecificConstraint in class Constraints - the sequencestart - the start position
protected void appendAdditionalInfo(StringBuffer xml)
Constraint
appendAdditionalInfo in class Constraintxml - the StringBuffer that is used for appending additional information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||