Skip to content

Commit

Permalink
remove doctest with randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Oct 11, 2024
1 parent bcb033a commit 0b5cfeb
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Test/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,6 @@ end
rand_factor([rng,], states)
Return a random `BPFactor` whose domain is specified by the iterable `states`.
Examples
========
Create a random factor connected to three variables ``x_1 \\in \\{1,2\\}, x_2 \\in \\{1,2,3,4\\}, x_3 \\in \\{1,2,3\\}``.
```jldoctest rand_factor
julia> using BeliefPropagation.Test
julia> import Random: MersenneTwister
julia> states = (2, 4, 3);
julia> f = rand_factor(MersenneTwister(0), states);
julia> f([1, 4, 2])
0.16703619444214968
```
"""
function rand_factor(rng::AbstractRNG, states)
isempty(states) && return BPFactor(zeros(0))
Expand Down

0 comments on commit 0b5cfeb

Please sign in to comment.