stim_energy_CE.__init__ stim_energy_CE.__init__(id_elec: None | int | list[int] = None, dt_res: float = 0.0001)[source] Initialize a cost evaluator proportional to stimulus energy. Parameters: id_elec (int | list[int] | None, optional) – Electrode identifiers included in the energy computation. dt_res (float, optional) – Temporal resolution used for resampling before integration.