target: target density

Description Usage Arguments Value Author(s) Examples

View source: R/density.R

Description

Trivariate 20-part gaussian mixture.

Usage

1
  target(x, means)

Arguments

x

matrix with observations in rows

means

means

Value

vector of length nrow(x) with density values

Author(s)

Grady Weyenberg

Examples

1
2
3
means <- t(replicate(20, runif(3,-10,10)))
target(matrix(1:12,4,3),means)
## rowMeans(apply(means,1,function(mean) dmvnorm(matrix(1:12,4,3),mean,diag(3)/10)))

grady/evol-mc documentation built on May 14, 2017, 2:05 p.m.