BinProb4Mixtures {DistributionOptimization}R Documentation

Bin Probabilities

Description

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

Usage

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

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)

[Package DistributionOptimization version 1.2.6 Index]