View source: R/core_functions.R
decode_signal | R Documentation |
Decoder takes a list of spike times for each Poisson process. It knows that one of them is firing at a higher rate, and tries to determine which it is by comparing likelihoods of observations
decode_signal(codebook, signal_plus_noise, signal_power, noise_power,
prior_distribution = c(), time_interval_in_seconds = 0.1,
entropy_threshold = 0.1, return_entropy_trace = FALSE,
return_posterior_trace = FALSE,
return_posterior_at_stop_time = FALSE)
codebook |
constructed using construct_codebook function |
signal_plus_noise |
signal to be decoded, output by add_channel_noise |
signal_power |
spikes per second allocated to signal process |
noise_power |
spikes per second allocated to every process (including signal process) |
prior_distribution |
initial guess at the distribution of messages. Influences decoding times. |
time_interval_in_seconds |
the interval at which to perform inference |
entropy_threshold |
transmission stops after entropy reaches this threshold |
return_entropy_trace |
return posterior entropy for each time step |
return_posterior_trace |
return trace of posterior values for every time step |
return_posterior_at_stop_time |
returns posterior values at stop time |
list of data frames. Will list decoded symbol, stop_time (in units of interval), entropy threshold, posterior at stop time, and potentially other time series as specified in the function call
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.