Not every distribution comes with a default constructor (those requiring no 
arguments). 

Here is the document about how you may construct a Multinomial distribution:

http://distributionsjl.readthedocs.org/en/latest/multivariate.html#multinomial-distribution

The no method error means that there are two constructing methods that 
require two arguments, but there is no constructing method that requires no 
arguments.

Dahua


On Thursday, June 19, 2014 12:59:06 PM UTC-5, Martin wrote:
>
> thanks, I was confused because of the no method error
>
> pdf(Multinomial(10,[0.7,0.3]),[2, 8])
>
> works as desired
>
>
> Am Donnerstag, 19. Juni 2014 19:09:45 UTC+2 schrieb John Myles White:
>>
>> Multinomial() doesn't work because there's no reasonable default we could 
>> assume. Did you want 3 dimensions? 100 dimensions? 
>>
>> Arguably none of the defaults should exist, but we haven't pushed on that 
>> yet. Maybe we should start removing all the default distributions. 
>>
>> The other errors you noticed are temporary and will go away with a future 
>> upgrade. They shouldn't affect your results. 
>>
>>  -- John 
>>
>> On Jun 19, 2014, at 10:00 AM, Martin <wel...@gmail.com> wrote: 
>>
>> > Hi, 
>> > 
>> > When I type 
>> > 
>> > using Distributions 
>> > Multinomial() 
>> > 
>> > I get 
>> > 
>> > julia> Multinomial() 
>> > ERROR: no method Multinomial() 
>> > 
>> > other Distributions work: 
>> > 
>> > julia> Binomial() 
>> > Binomial( size=1 prob=0.5 ) 
>> > 
>> > 
>> > When using Distributions I also get the following errors: 
>> > 
>> >                _ 
>> >    _       _ _(_)_     |  A fresh approach to technical computing 
>> >   (_)     | (_) (_)    |  Documentation: http://docs.julialang.org 
>> >    _ _   _| |_  __ _   |  Type "help()" to list help topics 
>> >   | | | | | | |/ _` |  | 
>> >   | | |_| | | | (_| |  |  Version 0.2.1 (2014-02-11 06:30 UTC) 
>> >  _/ |\__'_|_|_|\__'_|  |   
>> > |__/                   |  x86_64-linux-gnu 
>> > 
>> > julia> using Distributions 
>> > Warning: could not import Base.foldl into NumericExtensions 
>> > Warning: could not import Base.foldr into NumericExtensions 
>> > Warning: could not import Base.sum! into NumericExtensions 
>> > Warning: could not import Base.maximum! into NumericExtensions 
>> > Warning: could not import Base.minimum! into NumericExtensions 
>> > 
>> > 
>> > julia> Pkg.installed() 
>> > 
>> ["Distributions"=>v"0.3.0","Options"=>v"0.2.2","Optim"=>v"0.3.0","StatsBase"=>v"0.3.8","Calculus"=>v"0.1.3","NumericExtensions"=>v"0.3.6","DualNumbers"=>v"0.1.0"]
>>  
>>
>> > 
>> > 
>> > Is the Multinomial Distribution not implemented in 0.3.0 ? 
>> > 
>> > 
>> > 
>> > thanks, 
>> > Martin 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>>
>>

Reply via email to