How can I view the list of methods in the Julia package

Is there a command in Julia that lists all the methods available in the package?

For example, I download distributions

using Distributions 

and now I would like to see which function to call in order to draw a random value from the normal distribution. Is there a good way to do this from inside Julia without a google search?

+2
source share
1 answer

Sorting, although I don't think it has a lot of utility:

 julia> using Distributions julia> names(Distributions) 215-element Array{Symbol,1}: :median :logpdf :logpmf! :Chisq :posterior_rand :fit_mle! :NegativeBinomial :posterior_rand! :ContinuousMatrixDistribution :ValueSupport :InverseGamma :complete :TDist :NormalCanon :SufficientStats :Chi :logpmf :logdetcov :Gumbel :Sampleable ... 

or not programmatically using

 julia> whos(Distributions) AbstractMixtureModel DataType AbstractMvNormal DataType Arcsine DataType Bernoulli DataType Beta DataType BetaPrime DataType Binomial DataType 

I think that with the inclusion of the built-in documentation system in Julia 0.4 we will get more packages with documents available in REPL.

+3
source

Source: https://habr.com/ru/post/1214204/


All Articles