BinProb4Mixtures: Bin Probabilities

Description Usage Arguments Value Author(s) Examples

View source: R/BinProb4Mixtures.R

Description

Calculates the probability of bins/intervals within the dataspace defined by given breaks between them.

Usage

1
2
BinProb4Mixtures(Means, SDs, Weights, Breaks, IsLogDistribution = rep(F,
  length(Means)), LimitsAreFinite = T)

Arguments

Means

Means of the GMM Components

SDs

Standard Deviations of the GMM Components

Weights

Weights of the GMM Components

Breaks

Breaks Defining c-1 or c+1 bins (depending on LimitsAreFinite)

IsLogDistribution

If True, the GMM is interpreted as a logarithmic

LimitsAreFinite

If True, there are c+1 Bins, where the first and last bin are of inifinite size

Value

Probabalities of either c-1 or c+1 bins/intervals (depending on LimitsAreFinite)

Author(s)

Florian Lerch

Examples

1
2
3
4
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)

DistributionOptimization documentation built on Feb. 12, 2020, 5:57 p.m.