| Constructor and Description |
|---|
SimpleGaussianSumLogPrior(double sigma)
Creates a new
SimpleGaussianSumLogPrior with mean 0 and variance
sigma for all parameters, including the class parameters. |
SimpleGaussianSumLogPrior(StringBuffer xml)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
void |
addGradientFor(double[] params,
double[] grad)
Adds the gradient of the log-prior using the current parameters to a
given vector.
|
double |
evaluateFunction(double[] params)
Evaluates the function at a certain vector (in mathematical sense)
x. |
int |
getDimensionOfScope()
Returns the dimension of the scope of the
Function. |
String |
getInstanceName()
Returns a short instance name.
|
SimpleGaussianSumLogPrior |
getNewInstance()
This method returns an empty new instance of the current prior.
|
StringBuffer |
toXML()
Encodes the prior as an XML representation.
|
evaluateGradientOfFunction, setfindOneDimensionalMinpublic SimpleGaussianSumLogPrior(double sigma)
SimpleGaussianSumLogPrior with mean 0 and variance
sigma for all parameters, including the class parameters.sigma - the variancepublic SimpleGaussianSumLogPrior(StringBuffer xml) throws NonParsableException
Storable.
Creates a new SimpleGaussianSumLogPrior out of its XML
representation.xml - the XML representation as StringBufferNonParsableException - if the SimpleGaussianSumLogPrior could not be
reconstructed out of the XML representation (the
StringBuffer could not be parsed)Storablepublic void addGradientFor(double[] params,
double[] grad)
LogPrioraddGradientFor in class LogPriorparams - the parametersgrad - the vectorpublic double evaluateFunction(double[] params)
Functionx.params - the current vectorpublic int getDimensionOfScope()
FunctionFunction.n with

public SimpleGaussianSumLogPrior getNewInstance() throws CloneNotSupportedException
LogPriorDifferentiableSequenceScore
s that may be inside the instance. The DifferentiableSequenceScores must be
set by an invocation of the method
LogPrior.set(boolean, DifferentiableSequenceScore...).getNewInstance in class LogPriorCloneNotSupportedException - if something went wrong while cloningLogPrior.set(boolean, DifferentiableSequenceScore...)public StringBuffer toXML()
LogPriorLogPrior.set(boolean, DifferentiableSequenceScore...)
has to be invoked after decoding.public String getInstanceName()
LogPriorgetInstanceName in class LogPrior