public class UniformPositionPrior extends PositionPrior
motifLength| Constructor and Description |
|---|
UniformPositionPrior()
This empty constructor creates an instance with motif length -1.
|
UniformPositionPrior(StringBuffer xml)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, setMotifLength, toXMLpublic UniformPositionPrior()
public UniformPositionPrior(StringBuffer xml) throws NonParsableException
Storable.
Creates a new UniformPositionPrior out of its XML representation.xml - the XML representation as StringBufferNonParsableException - if the StringBuffer can not be parsedpublic double getLogPriorForPositions(int seqLength,
int... starts)
throws IllegalArgumentException
PositionPriorgetLogPriorForPositions in class PositionPriorseqLength - the length of the sequencestarts - the start positions of the part motifsIllegalArgumentException - if something went wrong, e.g. the motif length is not set.public final int getLength()
PositionPriorgetLength in class PositionPriorpublic String getInstanceName()
PositionPriorgetInstanceName in class PositionPriorprotected StringBuffer getAdditionalInformation()
PositionPriorStringBuffer containing additional
information for the XML representation.getAdditionalInformation in class PositionPriorStringBuffer containing additional information for the
XML representationprotected void extractAdditionalInformation(StringBuffer xml)
PositionPriorStringBuffer.extractAdditionalInformation in class PositionPriorxml - the StringBuffer containing the additional information
of the XML representation