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
- Parameters:
id_elec (None | int | list[int]) – id or list id of the electrode of the to from which the energy should be computed. If None,
dt_res (float) – resolotion time step use to compute the cost value
Methods
|
Init method for |
|
|
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 |