|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.sequenceScores.differentiable.logistic.ProductConstraint
public class ProductConstraint
This class implements product constraints, i.e., the method getValue(Sequence,int)
returns the product of the values for the positions defined in the constructor.
| Constructor Summary | |
|---|---|
ProductConstraint(int... pos)
This is the main constructor creating an instance from a given set of positions. |
|
ProductConstraint(StringBuffer xml)
This is the constructor for Storable. |
|
| Method Summary | |
|---|---|
ProductConstraint |
clone()
|
double |
getValue(Sequence seq,
int start)
This method returns the value f(seq) used in LogisticDiffSS |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProductConstraint(int... pos)
pos - the positions to be used in getValue(Sequence, int)
public ProductConstraint(StringBuffer xml)
throws NonParsableException
Storable. Creates a new
ProductConstraint out of a StringBuffer
.
xml - the XML representation as StringBuffer
NonParsableException - if the XML representation could not be parsed| Method Detail |
|---|
public StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
toXML in interface Storable
public ProductConstraint clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
public double getValue(Sequence seq,
int start)
LogisticConstraintLogisticDiffSS
getValue in interface LogisticConstraintseq - the sequencestart - the start position within the sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||