Skip to content

johnmyleswhite/IsingModels.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IsingModels.jl

Draw inexact samples from the Ising model using a Gibbs sampler.

using IsingModels

d = Ising(20, isferromagnetic = true)

for t in 1.0:1.0:5.0
    d.temperature = t
    show(rand(d))
end

d.isferromagnetic = false

for t in 1.0:1.0:5.0
    d.temperature = t
    show(rand(d))
end

writecsv("draw.csv",
         rand(Ising(200,
                    isferromagnetic = true,
                    temperature = 1.0)))

About

The Ising model as a Julian distribution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages