| Modifier and Type | Field and Description |
|---|---|
static DoesNothingLogPrior |
defaultInstance
As this prior does not penalize parameters and does not have any
parameters itself, this class does not have a constructor, but provides a
default instance in order to reduce memory consumption.
|
| 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.
|
LogPrior |
getNewInstance()
This method returns an empty new instance of the current prior.
|
StringBuffer |
toXML()
Deprecated.
|
evaluateGradientOfFunction, setfindOneDimensionalMinpublic static final DoesNothingLogPrior defaultInstance
public double evaluateFunction(double[] params)
Functionx.params - the current vectorpublic void addGradientFor(double[] params,
double[] grad)
LogPrioraddGradientFor in class LogPriorparams - the parametersgrad - the vectorpublic int getDimensionOfScope()
FunctionFunction.n with

public LogPrior 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...)@Deprecated public StringBuffer toXML() throws RuntimeException
LogPriorLogPrior.set(boolean, DifferentiableSequenceScore...)
has to be invoked after decoding.toXML in interface StorabletoXML in class LogPriorRuntimeExceptionpublic String getInstanceName()
LogPriorgetInstanceName in class LogPrior