View source: R/core_functions.R
encode_signal | R Documentation |
The 'code' is just a Poisson spike train for a given group of neurons This function will return a data frame with (group_index,spike_time) columns
encode_signal(codebook, symbol, signal_power, duration_in_seconds,
leak_symbols = NA, leak_powers = NA)
codebook |
constructed using construct_codebook function |
symbol |
symbol to be encoded |
signal_power |
spikes per second allocated to 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' |
leak_symbols |
vector of symbols to which a 'leak' signal power should be added. Should not include the symbol specified by the 'symbol' parameter |
leak_powers |
vector of signal powers (spikes/second), to assign to leak symbols. Must be same length as leak_symbols. |
Some other stuff here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.