powered by
Calculates a fitting error as well as the overlapping measure for the mixtures. Combines them with ratio rho in favor of Overlapping.
MixedDistributionError(Means, SDs, Weights, Data, rho = 0.5, breaks = NULL, Kernels = NULL, ErrorMethod = "chisquare")
Means of the GMM Components
Standard Deviations of the GMM Components
Weights of the GMM Components
Empirical Data based on which the GMM is build
Ratio of OverlappingError vs Fitting Error
vector containing the breaks between bins
positions at which density is to be compared
"pdeerror": fitting error is measured through Pareto Density Estimation. "chisquare": fitting error is measured through the Chi Square fitting error.
Mixed Error
# NOT RUN { Data = c(rnorm(50,1,2), rnorm(50,3,4)) MixedDistributionError(c(1,3), c(2,4), c(0.5,0.5), Data = Data) # }
Run the code above in your browser using DataLab