Error Messages/42622
Error message
In the function Pdf, both parameters «samplesPerStep» and «numPoints» were specified. You can only specify one or the other.
Cause
You've made a call to the function Pdf or Cdf with both parameters, such as:
Pdf(X, samplesPerStep: 30, numPoints: 50)
These two parameters provide alternate ways of specifying the same information -- namely, how many points (i.e., histogram bins) should be plotted in your Pdf or Cdf plot. The two parameters are approximately related as:
- [math]\displaystyle{ samplesPerStep * numPoints \approx sampleSize }[/math]
The relationship is not exact because all quantities are constrained to be integers, and bins at either end might need to be added. But once sample size is set, one parameter determines the other, so you cannot specify both simultaneously.
Remedy
Specify the value for either the «samplesPerStep» or the «numPoints» parameter.
See Also
Comments
Enable comment auto-refresher