Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.jstacs.models.discrete.inhomogeneous
Class InhConstraint

    java.lang.Object
      de.jstacs.models.discrete.Constraint
          de.jstacs.models.discrete.inhomogeneous.InhConstraint

All Implemented Interfaces:
  Storable, Cloneable

Direct Known Subclasses:
  InhCondProb, MEMConstraint

    public abstract class InhConstraint

extends Constraint
implements Cloneable

This class is the super class for all inhomogeneous constraints.

Author:
  Jens Keilwagen

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

### offset

    protected int[] offset

  This array is used to find the start indices of the conditional distributions.

Constructor Detail

### InhConstraint

    public InhConstraint(int[] pos,
                         int[] alphabetLength)

Parameters:
  `pos` - the positions
  `alphabetLength` - the length of each alphabet (not only the used positions)

### InhConstraint

    public InhConstraint(StringBuffer xml)
                  throws NonParsableException

  The constructor for saved objects.

  Parameters:
    `xml` - the representation
  Throws:
    `NonParsableException` - if the StringBuffer could not be parsed.

Method Detail

### extractAdditionalInfo

    protected void extractAdditionalInfo(StringBuffer xml)
                                  throws NonParsableException

  Description copied from class: `Constraint`
  This method parses additional information from the StringBuffer that are not parsed in the base class.

  Specified by:
    `extractAdditionalInfo` in class `Constraint`
  Parameters:
    `xml` - the StringBuffer to parse
  Throws:
    `NonParsableException` - if something with the parsing went wrong

### clone

    public InhConstraint clone()
                        throws CloneNotSupportedException

  Overrides:
    `clone` in class `Constraint`
  Throws:
    `CloneNotSupportedException`

### satisfiesSpecificConstraint

    public int satisfiesSpecificConstraint(Sequence s,
                                           int start)

  Description copied from class: `Constraint`
  This method returns the index of the specific constraint that is fullfilled by the sequence beginning at `start`.

  Specified by:
    `satisfiesSpecificConstraint` in class `Constraint`
  Parameters:
    `s` - the sequence
    `start` - the start position
  Returns:
    the index of the fulfilled, specific constraint

### appendAdditionalInfo

    protected void appendAdditionalInfo(StringBuffer xml)

  Description copied from class: `Constraint`
  This method appends additional information that are not stored in the base class to the StringBuffer.

  Specified by:
    `appendAdditionalInfo` in class `Constraint`
  Parameters:
    `xml` - the StringBuffer that is used for appending additional information

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD