Gamma: Create a Gamma Prior

View source: R/distributions.R

GammaR Documentation

Create a Gamma Prior

Description

Creates a Gamma prior in Julia using Distributions.jl

Usage

Gamma(shape = 2, scale = 2)

Arguments

shape

shape parameter

scale

scale parameter

Value

A list with the following content

  • juliavar - julia variable containing the distribution

  • juliacode - julia code used to create the distribution

Examples

## Not run: 
  ## Needs previous call to `BayesFluxR_setup` which is time
  ## consuming and requires Julia and BayesFlux.jl
  BayesFluxR_setup(installJulia=TRUE, seed=123)
  net <- Chain(Dense(5, 1))
  like <- likelihood.feedforward_normal(net, Gamma(2.0, 0.5))

## End(Not run)


enweg/BFluxR documentation built on Jan. 27, 2024, 6:43 p.m.