noisyMCMC: Create sounds from MCMC outputs

Description Usage Arguments Examples

Description

This function will generate sounds using the outputs of an MCMC.

Usage

1
noisyMCMC(my.mcmc, mean.freq = 400, speed = 0.01)

Arguments

my.mcmc

dataframe containing all mcmc outputs. Each column should be a parameter, and the rows should be their estimated values.

mean.freq

The mean frequency to use. Values of the MCMC adjust this mean frequency.

speed

The speed at which sounds are played.

player

The name of the player to be used by tuneR (Default: mplay32.exe). See tuneR ?play() for options.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
#example MCMC outputs from a 3 parameter model
good.mcmc <- data.frame(x1 = rnorm(300,0,1),
                        x2 = rnorm(300,10,1),
                        x3 = rnorm(300,20,1) )
bad.mcmc <- data.frame(x1 = rnorm(300,0,1),
                       x2 = rnorm(300,10,1), 
                       x3 = c(rnorm(25,0,1),rnorm(25,10,0.1),rnorm(250,0,10)) )

#lisen to MCMC chain
noisyMCMC(good.mcmc)
noisyMCMC(bad.mcmc)

## End(Not run)     

tbonne/acousticMCMC documentation built on May 26, 2019, 5:31 a.m.