replay_trajectory_classification.simulate#

Main code for simulating position and sorted spikes or clusterless spikes and waveforms.

Functions

get_trajectory_direction

Find if the trajectory is inbound or outbound.

simulate_multiunit_with_place_fields

Simulates a multiunit with neurons at place_means

simulate_neuron_with_place_field

Simulates the spiking of a neuron with a place field at means.

simulate_place_field_firing_rate

Simulates the firing rate of a neuron with a place field at means.

simulate_poisson_spikes

Given a rate, returns a time series of spikes.

simulate_position

Simulate animal moving through linear space.

simulate_position_with_pauses

Simulate an animal moving with pauses.

simulate_time

Simulate a time in seconds.