ML_modules.Template_Prior_NF.log_prior#
Back to Class page
Summary#
Compute the prior of the calpha templates.
Signature#
def log_prior(self, calpha_array)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Log of the prior density at the location of the template. For the probability of a template, use: np.exp(prior) \* (delta_calpha\*\*grid_ndims) |
Docstring#
Compute the prior of the calpha templates.
:param calpha_norm_array: array of calpha templates normalized
using bank.calpha_transformer.transform(calphas)
:return: Log of the prior density at the location of the template.
For the probability of a template, use:
np.exp(prior) * (delta_calpha**grid_ndims)