mix_dist_maker: generate mixture distribution of same family

View source: R/families.R

mix_dist_makerR Documentation

generate mixture distribution of same family

Description

generate mixture distribution of same family

Usage

mix_dist_maker(
  dist = tfd_normal,
  nr_comps = 3,
  trafos_each_param = list(function(x) x, function(x) 1e-08 + tfe(x))
)

Arguments

dist

tfp distribution

nr_comps

number of mixture components

trafos_each_param

list of transformaiton applied before plugging the linear predictor into the parameters of the distributions. Should be of length #parameters of dist

Value

returns function than can be used as argument dist\_fun for


davidruegamer/deepregression documentation built on May 30, 2022, 6:21 p.m.