|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jstacs.sequenceScores.statisticalModels.trainable.mixture.motif.positionprior.PositionPrior de.jstacs.sequenceScores.statisticalModels.trainable.mixture.motif.positionprior.UniformPositionPrior
public class UniformPositionPrior
This prior implements a uniform distribution for the start position.
Field Summary |
---|
Fields inherited from class de.jstacs.sequenceScores.statisticalModels.trainable.mixture.motif.positionprior.PositionPrior |
---|
motifLength |
Constructor Summary | |
---|---|
UniformPositionPrior()
This empty constructor creates an instance with motif length -1. |
|
UniformPositionPrior(StringBuffer xml)
The standard constructor for the interface Storable . |
Method Summary | |
---|---|
protected void |
extractAdditionalInformation(StringBuffer xml)
This method extracts additional information from a StringBuffer . |
protected StringBuffer |
getAdditionalInformation()
This method returns a StringBuffer containing additional
information for the XML representation. |
String |
getInstanceName()
Returns the instance name. |
int |
getLength()
Returns the length that is supported by this prior. |
double |
getLogPriorForPositions(int seqLength,
int... starts)
The logarithmic value of the prior for specified start positions of the part motifs. |
Methods inherited from class de.jstacs.sequenceScores.statisticalModels.trainable.mixture.motif.positionprior.PositionPrior |
---|
clone, setMotifLength, toXML |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniformPositionPrior()
public UniformPositionPrior(StringBuffer xml) throws NonParsableException
Storable
.
Creates a new UniformPositionPrior
out of its XML representation.
xml
- the XML representation as StringBuffer
NonParsableException
- if the StringBuffer
can not be parsedMethod Detail |
---|
public double getLogPriorForPositions(int seqLength, int... starts) throws IllegalArgumentException
PositionPrior
getLogPriorForPositions
in class PositionPrior
seqLength
- the length of the sequencestarts
- the start positions of the part motifs
IllegalArgumentException
- if something went wrong, e.g. the motif length is not set.public final int getLength()
PositionPrior
getLength
in class PositionPrior
public String getInstanceName()
PositionPrior
getInstanceName
in class PositionPrior
protected StringBuffer getAdditionalInformation()
PositionPrior
StringBuffer
containing additional
information for the XML representation.
getAdditionalInformation
in class PositionPrior
StringBuffer
containing additional information for the
XML representationprotected void extractAdditionalInformation(StringBuffer xml)
PositionPrior
StringBuffer
.
extractAdditionalInformation
in class PositionPrior
xml
- the StringBuffer
containing the additional information
of the XML representation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |