powered by
Calculates the probability of bins/intervals within the dataspace defined by given breaks between them.
BinProb4Mixtures(Means, SDs, Weights, Breaks, IsLogDistribution = rep(F, length(Means)), LimitsAreFinite = T)
Means of the GMM Components
Standard Deviations of the GMM Components
Weights of the GMM Components
Breaks Defining c-1 or c+1 bins (depending on LimitsAreFinite)
If True, the GMM is interpreted as a logarithmic
If True, there are c+1 Bins, where the first and last bin are of inifinite size
Probabalities of either c-1 or c+1 bins/intervals (depending on LimitsAreFinite)
# NOT RUN { Data = c(rnorm(50,1,2), rnorm(50,3,4)) NoBins = 20 breaks = seq(min(Data),max(Data), length.out=length(NoBins)+1) BinProb4Mixtures(c(1,3), c(2,4), c(0.5,0.5), breaks) # }
Run the code above in your browser using DataLab