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)
Input variables#

Name

Type

Default

Description

calpha_array

Output variables#

Return annotation

Docstring type

Description

None

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)