public class GaussianPriorImpl extends Prior
| Constructor and Description |
|---|
GaussianPriorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeLoglikelihood(double[] betas,
Instances instances)
This method calls the log-likelihood implemented in the Prior
abstract class.
|
void |
computePenalty(double[] betas,
double[] hyperparameters)
This function computes the penalty term specific to Gaussian distribution.
|
java.lang.String |
getRevision()
Returns the revision string.
|
double |
update(int j,
Instances instances,
double beta,
double hyperparameter,
double[] r,
double deltaV)
Update function specific to Laplace Prior.
|
computelogLikelihood, getLoglikelihood, getLogPosterior, getPenaltypublic double update(int j,
Instances instances,
double beta,
double hyperparameter,
double[] r,
double deltaV)
public void computeLoglikelihood(double[] betas,
Instances instances)
betas - instances - public void computePenalty(double[] betas,
double[] hyperparameters)
computePenalty in class Priorbetas - hyperparameters - public java.lang.String getRevision()