BM_Density: Beta Mixture pdf

Description Usage Arguments Value

View source: R/BM_Density.R

Description

returns the density of a given point based on the given parameters of a beta mixture distribution

Usage

1
BM_Density(x, Mixture_Parameters, Alphas, Betas, Log = F)

Arguments

x

vector of data points. Will compute the density of them.

Mixture_Parameters

Vector of mixture parameters. Must add up to 1 if of length N, or must be within (0, 1) if of length N-1 (reference Alphas and Betas for help with length).

Alphas

Vector of Alpha shape parameters. Must be of length N (reference Alphas and Betas for help with length).

Betas

Vector of Beta shape parameters. Must be of length N (reference Alphas and Betas for help with length).

Log

Boolean to deterime if the log of the density is to be returned.

Value

Vector of density measures. Same length as input vector x, with cooresponding indices.


palmerimatthew/BetaMixture documentation built on Aug. 3, 2020, 1:11 a.m.