[julia-users] Re: Installing Julia Studio properly on Windows 7 - Step by Step Instructions

2014-10-10 Thread pamjervis
Thanks Iain. So then how could I fix it?

On Wednesday, November 27, 2013 8:17:32 AM UTC, Dominik Holenstein wrote:


 I needed several attempts until I could start working with Julia Studio on 
 Windows 7. 

 Most of the issues I faced were related to the package management and that 
 Julia Studio creates the package folder for Julia automatically if you 
 don't set the JULIA_PKGDIR path. This may work in most environments but it 
 didn't on the notebook I use at work. 

 These are the steps I had to follow to make Julia Studio (v. 0.43) running 
 properly on Windows 7:

- Set the JULIA_PKGDIR variable
   - Create a folder named for example *Julia Packages* on your 
   computer. 
  - I added it to the *My Documents* folder 
  - I tried to create this folder in the Google Drive folder but 
  this did not work properly 
- Go to
   Control Panel - System - Advanced System Settings - Environment 
   Variables 
   - Under *User variables* click *New...* and add this: 
  - Variable Name: JULIA_PKGDIR 
  - Variable Value: [the path to your *Julia Packages* folder] 
 - Download and install Julia Studio: 
http://forio.com/julia/downloads/ 
- Start Julia Studio 
- No packages are installed. This is correct 
- If you are behind a firewall you may have to run this command in the 
console first: 
   - run(`git config --global url.https://.insteadOf git://`) 
 - Initialize the package repository now by running this command in 
the console: 
   - Pkg.status() 
 - Now you can start adding packages to your environment 
   - 
   
 http://docs.julialang.org/en/release-0.2/manual/packages/#adding-and-removing-packages
  
 - Done + Enjoy! 


 Is this useful for you? 

 Inputs, corrections, comments and questions are much appreciated. 

 Regards,
 Dominik




[julia-users] Re: Installing Julia Studio properly on Windows 7 - Step by Step Instructions

2014-10-08 Thread pamjervis
Hi,

After I started Julia Studio I received this message in the Output Console 
window:

ERROR: package directory C:\Users\pamela_j\Documents\v0.3 doesn't exist; 
run Pkg.init() to create it. 

 in error at error.jl:21

 in cd at pkg/dir.jl:25

while loading C:\Program 
Files\JuliaStudio-0.4.5\julia-studio\share\julia-studio\Console\Console.jl, in 
expression starting on line 1


Therefore, I don't have even the chance to write any command in the Console 
window as Julia doesn't appear. What can I do?

I hope you can help me,

Thanks,

Pam.




On Wednesday, November 27, 2013 8:17:32 AM UTC, Dominik Holenstein wrote:


 I needed several attempts until I could start working with Julia Studio on 
 Windows 7. 

 Most of the issues I faced were related to the package management and that 
 Julia Studio creates the package folder for Julia automatically if you 
 don't set the JULIA_PKGDIR path. This may work in most environments but it 
 didn't on the notebook I use at work. 

 These are the steps I had to follow to make Julia Studio (v. 0.43) running 
 properly on Windows 7:

- Set the JULIA_PKGDIR variable
   - Create a folder named for example *Julia Packages* on your 
   computer. 
  - I added it to the *My Documents* folder 
  - I tried to create this folder in the Google Drive folder but 
  this did not work properly 
- Go to
   Control Panel - System - Advanced System Settings - Environment 
   Variables 
   - Under *User variables* click *New...* and add this: 
  - Variable Name: JULIA_PKGDIR 
  - Variable Value: [the path to your *Julia Packages* folder] 
 - Download and install Julia Studio: 
http://forio.com/julia/downloads/ 
- Start Julia Studio 
- No packages are installed. This is correct 
- If you are behind a firewall you may have to run this command in the 
console first: 
   - run(`git config --global url.https://.insteadOf git://`) 
 - Initialize the package repository now by running this command in 
the console: 
   - Pkg.status() 
 - Now you can start adding packages to your environment 
   - 
   
 http://docs.julialang.org/en/release-0.2/manual/packages/#adding-and-removing-packages
  
 - Done + Enjoy! 


 Is this useful for you? 

 Inputs, corrections, comments and questions are much appreciated. 

 Regards,
 Dominik




[julia-users] pdf of a multivariate distribution

2014-08-14 Thread pamjervis
Hi all,

I am getting an error when I try to obtain the probability density 
evaluated at z1[1,;]:

 julia pdf(MvNormal(zhat11,F11),z1[1,:])

MethodError(logpdf,(GenericMvNormal{PDMat} distribution

Dim: 27

Zeromean: false

μ:

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0


Σ: PDMat(27,27x27 Array{Float64,2}:

 1.46955   1.08653   0.872691  0.73362   …  0.0   0.0   0.0 

 1.08653   1.58080.948201  0.797096 0.0   0.0   0.0 

 0.872691  0.948201  1.38173   0.640224 0.0   0.0   0.0 

 0.73362   0.797096  0.640224  0.94777  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 ⋮   ⋱⋮ 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.408578  0.564983  0.610912

 0.0   0.0   0.0   0.0  0.335025  0.463274  0.500935

 0.0   0.0   0.0   0.0  1.41921   0.723169  0.781958

 0.0   0.0   0.0   0.0   …  0.723169  1.79472   1.08129 

 0.0   0.0   0.0   0.0  0.781958  1.08129   1.95214 
,Cholesky{Float64}(27x27 Array{Float64,2}:

 1.21225   0.896288  0.719894  0.605172  …  0.0   0.0   0.0 

 1.08653   0.881739  0.343604  0.288847 0.0   0.0   0.0 

 0.872691  0.948201  0.863378  0.12198  0.0   0.0   0.0 

 0.73362   0.797096  0.640224  0.695144 0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 ⋮   ⋱⋮ 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.449492  0.621558  0.672087

 0.0   0.0   0.0   0.0  0.313935  0.43411   0.469401

 0.0   0.0   0.0   0.0  1.05765   0.290741  0.314376

 0.0   0.0   0.0   0.0   …  0.723169  1.06555   0.345716

 0.0   0.0   0.0   0.0  0.781958  1.08129   1.03041 ,'U'))

,{-0.18446029}))




The MvNormal part works perfect alone: 
 
julia MvNormal(zhat11,F11)

GenericMvNormal{PDMat} distribution

Dim: 27

Zeromean: false

μ:

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0


Σ: PDMat(27,27x27 Array{Float64,2}:

 1.46955   1.08653   0.872691  0.73362   …  0.0   0.0   0.0 

 1.08653   1.58080.948201  0.797096 0.0   0.0   0.0 

 0.872691  0.948201  1.38173   0.640224 0.0   0.0   0.0 

 0.73362   0.797096  0.640224  0.94777  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 ⋮   ⋱⋮ 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

 0.0   0.0   0.0   0.0  0.0   0.0   0.0 

 0.0   0.0   0.0   

Re: [julia-users] pdf of a multivariate distribution

2014-08-14 Thread pamjervis
Thanks a lot John for your answer! I'm starting in Julia so I'm still in 
the learning curve...

Do you know how I can convert Array{Float64, 2} to Array{Float64, 1}?

Thanks again!

Pam.

On Thursday, August 14, 2014 5:15:01 PM UTC+1, John Myles White wrote:

 In Julia, anything with a description like 1x27 Array{Any,2} is a matrix, 
 not a vector.

 Also, it's not the right kind of vector because it has no numeric type 
 restriction. It needs to be a vector of Float64 values, like you'd get from 
 doing something like:

 [1.0, 2.0, 3.0]

  -- John

 On Aug 14, 2014, at 8:56 AM, pamj...@gmail.com javascript: wrote:

 Hi all,

 I am getting an error when I try to obtain the probability density 
 evaluated at z1[1,;]:

 julia pdf(MvNormal(zhat11,F11),z1[1,:])

 MethodError(logpdf,(GenericMvNormal{PDMat} distribution

 Dim: 27

 Zeromean: false

 μ:

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0


 Σ: PDMat(27,27x27 Array{Float64,2}:

  1.46955   1.08653   0.872691  0.73362   …  0.0   0.0   0.0 

  1.08653   1.58080.948201  0.797096 0.0   0.0   0.0 

  0.872691  0.948201  1.38173   0.640224 0.0   0.0   0.0 

  0.73362   0.797096  0.640224  0.94777  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  ⋮   ⋱⋮ 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.408578  0.564983  0.610912

  0.0   0.0   0.0   0.0  0.335025  0.463274  0.500935

  0.0   0.0   0.0   0.0  1.41921   0.723169  0.781958

  0.0   0.0   0.0   0.0   …  0.723169  1.79472   1.08129 

  0.0   0.0   0.0   0.0  0.781958  1.08129   1.95214 
 ,Cholesky{Float64}(27x27 Array{Float64,2}:

  1.21225   0.896288  0.719894  0.605172  …  0.0   0.0   0.0 

  1.08653   0.881739  0.343604  0.288847 0.0   0.0   0.0 

  0.872691  0.948201  0.863378  0.12198  0.0   0.0   0.0 

  0.73362   0.797096  0.640224  0.695144 0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  ⋮   ⋱⋮ 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.449492  0.621558  0.672087

  0.0   0.0   0.0   0.0  0.313935  0.43411   0.469401

  0.0   0.0   0.0   0.0  1.05765   0.290741  0.314376

  0.0   0.0   0.0   0.0   …  0.723169  1.06555   0.345716

  0.0   0.0   0.0   0.0  0.781958  1.08129   1.03041 ,'U'))

 ,{-0.18446029}))




 The MvNormal part works perfect alone: 

 julia MvNormal(zhat11,F11)

 GenericMvNormal{PDMat} distribution

 Dim: 27

 Zeromean: false

 μ:

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0

 0


 Σ: PDMat(27,27x27 Array{Float64,2}:

  1.46955   1.08653   0.872691  0.73362   …  0.0   0.0   0.0 

  1.08653   1.58080.948201  0.797096 0.0   0.0   0.0 

  0.872691  0.948201  1.38173   0.640224 0.0   0.0   0.0 

  0.73362   0.797096  0.640224  0.94777  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0  0.0   0.0   0.0 

  0.0   0.0   0.0   0.0   …  0.0   0.0   0.0 

  0.0   0.0   0.0