mixturemodel | Dirichlet process mixture model for datamicroscopes
kandi X-RAY | mixturemodel Summary
kandi X-RAY | mixturemodel Summary
Dirichlet process mixture model (DPMM) for datamicroscopes
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Calculate posterior probability for a given point
- Calculate the posterior probability for a sequence of points
- Check if dtype is a discrete dtype
- Return the default kernel configuration
- Return the default assignment kernel configuration
- Return a default feature_hp
mixturemodel Key Features
mixturemodel Examples and Code Snippets
Community Discussions
Trending Discussions on mixturemodel
QUESTION
I want to plotting mixtures of two 1d Gaussian distributions with Julia. I am not sure what is the best way to do it. I am trying to use Distributions.jl
and in specific to both
- Define two Gaussians using
d1 = Normal(0.0, 1.0)
andd2 = Normal(1.0, 1.8)
- Define a mixture using
MixtureModel(Normal[ Normal(-2.0, 1.2), Normal(0.0, 1.0), Normal(3.0, 2.5)], [0.1, 0.6, 0.3])
Now, for the 1st attempt I do not know how to define the weights. My questions therefore is about how to proceed on to simply generate and draw samples of this mixture?
I would like to plot them and also use these samples in order to perform parameter estimation.
...ANSWER
Answered 2021-Jan-04 at 15:19I'm not sure I fully understand the question - why are you defining d1
and d2
?
To answer your bold question: just use rand()
to draw from your mixture distribution:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mixturemodel
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page