|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.models.mixture.motif.positionprior.PositionPrior
de.jstacs.models.mixture.motif.positionprior.GaussianLikePositionPrior
public class GaussianLikePositionPrior
This class implements a gaussian like discrete truncated prior.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.models.mixture.motif.positionprior.PositionPrior |
|---|
motifLength |
| Constructor Summary | |
|---|---|
GaussianLikePositionPrior(int length,
double max,
double sigma)
This constructor creates an instance with given sequence length, maximal value and sigma for the Gaussian. |
|
GaussianLikePositionPrior(StringBuffer rep)
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)
Returns only the important part and leaving the logarithm of the normalization constant out. |
void |
setMotifLength(int motifLength)
Sets the length of the current motif. |
| Methods inherited from class de.jstacs.models.mixture.motif.positionprior.PositionPrior |
|---|
clone, toXML |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaussianLikePositionPrior(int length,
double max,
double sigma)
length - the sequence lengthmax - the maximal positionsigma - the standard deviation (sigma) of the Gaussian
public GaussianLikePositionPrior(StringBuffer rep)
throws NonParsableException
Storable.
Creates a new GaussianLikePositionPrior out of a
StringBuffer.
rep - the StringBuffer
NonParsableException - if the StringBuffer can not be parsed| Method Detail |
|---|
public void setMotifLength(int motifLength)
PositionPrior
setMotifLength in class PositionPriormotifLength - the motif length
public double getLogPriorForPositions(int seqLength,
int... starts)
throws IllegalArgumentException
getLogPriorForPositions in class PositionPriorseqLength - 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 int getLength()
PositionPrior
getLength in class PositionPriorpublic String getInstanceName()
PositionPrior
getInstanceName in class PositionPriorprotected StringBuffer getAdditionalInformation()
PositionPriorStringBuffer containing additional
information for the XML representation.
getAdditionalInformation in class PositionPriorStringBuffer containing additional information for the
XML representation
protected void extractAdditionalInformation(StringBuffer xml)
throws NonParsableException
PositionPriorStringBuffer.
extractAdditionalInformation in class PositionPriorxml - the StringBuffer containing the additional information
of the XML representation
NonParsableException - if the StringBuffer is not parsable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||