# Where are parameters stored within ForneyLab

**URL:** https://discourse.julialang.org/t/where-are-parameters-stored-within-forneylab/79999
**Category:** General Usage
**Created:** [April 25, 2022, 5:15pm UTC](https://discourse.julialang.org/t/where-are-parameters-stored-within-forneylab/79999 "2022-04-25T17:15:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)
#### Post date: [April 25, 2022, 5:15pm UTC](https://discourse.julialang.org/t/where-are-parameters-stored-within-forneylab/79999/1 "2022-04-25T17:15:51Z")

</div>

Consider the following code snippet:

```julia
using ForneyLab
g = FactorGraph()
@RV x ~ Bernoulli(0.7)

```

My question is: in what data structure is 0.7 stored? I found that `Bernoulli` is a `struct` by examining the ForneyLab source code. So far, I have not been able to access “0.7” by examining with `g` or `x` from the command line. I am working in Jupyterlab. For example,

```julia
g.variables[:clamp_1]

```

produces

```julia
Variable(:clamp_1, Edges:
Edge belonging to variable clamp_1: ( clamp_1.i[out] )----( bernoulli_1.i[p] ).
)

```

I am simply trying to better understand the internal structure of this package, which I find quite interesting. Thank you.
