transmit_signal: Encode the signal, add noise, and decode the signal

View source: R/core_functions.R

transmit_signalR Documentation

Encode the signal, add noise, and decode the signal

Description

Helper function to encapsulate function calls for a 'signal transmission' event

Usage

transmit_signal(codebook, symbol, signal_power, noise_power,
  duration_in_seconds, prior_distribution = c(), time_interval = 0.1,
  entropy_threshold = 0.1, return_posterior_at_stop_time = FALSE,
  return_posterior_trace = FALSE, leak_symbols = NA,
  leak_powers = NA)

Arguments

codebook

constructed using construct_codebook function

symbol

symbol to transmit. Must be defined in the codebook.

signal_power

spikes per second allocated to signal process

noise_power

spikes per second allocated to every process (including signal process)

duration_in_seconds

number of time (in seconds) to simulate for – limits max decoding time. Signals not decoded by this time will be interpreted as 'NA'

prior_distribution

initial guess at the distribution of messages. Influences decoding times.

time_interval

the interval at which to perform inference

entropy_threshold

transmission stops after entropy reaches this threshold

return_posterior_at_stop_time

returns posterior values at stop time

return_posterior_trace

return trace of posterior values for every time step

leak_symbols

array of symbols 'accidentally' allocated signal power

leak_powers

array of signal powers to allocated to leak_symbols

Value

returns which symbol is decided plus response time and which symbol was sent


tom-christie/transmit documentation built on July 19, 2023, 12:52 p.m.