stim_energy_CE
- class nrv.optim.optim_utils.stim_energy_CE(id_elec: None | int | list[int] = None, dt_res: float = 0.0001)[source]
Create a callable object which return a value proportionnal to the stimulus energy, assuming the electrode impedance is a constant.
\[cost = \sum_{e}\sum_{t_k}{i_{e,stim}^2(t_k)}\]with \(t_k\) is the discrete time step of the simulation
Methods
|
Initialize a cost evaluator proportional to stimulus energy. |
|
Compute the total energy-based cost from the extracellular stimuli stored in simulation results. |
Compute the integrated squared-amplitude cost of one stimulus. |
|
Generic method returning all the atributes of an NRV_class instance |
|
|
Generic loading method for |
|
Generic saving method for |
|
Generic method to set any attribute of |