I want to plot a simulated Rayleigh distribution with the theoretical one, but I have two problems.
1. The y axis is different
2. The simulated is obtained using the histogram block which creates a cluster graph, and because the simulated is obtained using an array
I cannot use build array function to put them in one graph.
please see the attached pictures below
Solved! Go to Solution.
Would you attach your project please? That will make it easier to explore the issue.
This seems like scaling issue between your simulated and theoretical distributions. What are the X inputs that you are giving each one?
For plots, you can use Property Nodes to set X/Y ranges. To do that, you can create a reference to the Graph or Histograph and use Property Nodes to modify them. See below for more info:
For the actual difference in the two plots, I would point you toward the Help for each. The main difference stem from the fact the Histogram is computed numerical and the PDF is generated using an equation. I would also take a look at your X inputs as well:
Thanks for the information, it is really helpful.
Perhaps you can also help me to do maximum likelihood estimation so that I can estimate the distribution parameters ?
Great, glad that helped, Ali!
There is not a built in toolkit for MLE for parameters. You could write a numerical method to do this in LabVIEW (or use C Node or Interface for MATLAB® if you prefer one of those). Here is a post with a simple version of the algorithm: