|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 parsedMethod Detail |
---|
public StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.
toXML
in interface Storable
public ProductConstraint clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public double getValue(Sequence seq, int start)
LogisticConstraint
LogisticDiffSS
getValue
in interface LogisticConstraint
seq
- the sequencestart
- the start position within the sequence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |