stim_energy_CE.compute_stimulus_cost

stim_energy_CE.compute_stimulus_cost(stim: stimulus)[source]

Compute the integrated squared-amplitude cost of one stimulus.

Parameters:

stim (stimulus) – Stimulus to integrate.

Returns:

Integrated squared-amplitude cost.

Return type:

float