pangolin.interface.normal_prec#
- pangolin.interface.normal_prec(mu, tau)#
Create a
NormalPrecdistributed RV (Wikipedia).This function belongs to the default interface. Thus, all arguments must either be scalar or mutually broadcastable using simple broadcasting, unless changed within an
overload()block.- Parameters:
- Returns:
ir.RV – RV whose operation is
pangolin.ir.NormalPrecwhen all parents are scalar, or one or more nestedpangolin.ir.VMapoperations around that type when broadcasting is required. The operation has 2 parents.- Return type:
Examples
>>> import pangolin.interface as pi >>> x = pi.normal_prec(0.1, 0.2) >>> x RV(NormalPrec(), RV(Constant(0.1)), RV(Constant(0.2))) >>> x.shape () >>> y = pi.normal_prec([0.1, 0.1], 0.2) >>> y RV(VMap(NormalPrec(), [0, None], 2), RV(Constant([0.1,0.1])), RV(Constant(0.2))) >>> y.shape (2,)
See also