Learn R Programming

BayesFluxR (version 0.1.3)

Truncated: Truncates a Distribution

Description

Truncates a Julia Distribution between `lower` and `upper`.

Usage

Truncated(dist, lower, upper)

Value

see Gamma

Arguments

dist

A Julia Distribution created using Gamma, InverseGamma ...

lower

lower bound

upper

upper bound

Examples

Run this code
if (FALSE) {
  ## 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, Truncated(Normal(0, 0.5), 0, Inf))
}

Run the code above in your browser using DataLab