sc_neurocore_engine/neurons/
biophysical.rs1mod av_ron_cardiac;
15mod bertram_phantom;
16mod connor_stevens;
17mod de_schutter_purkinje;
18mod destexhe_thalamic;
19mod durstewitz_dopamine;
20mod gif_population;
21mod glif;
22mod golomb_fs;
23mod hill_tononi;
24mod hodgkin_huxley;
25mod huber_braun;
26mod mainen_sejnowski;
27mod mihalas_niebur;
28mod plant_r15;
29mod pospischil;
30mod prescott;
31mod reexports;
32mod sc_four_state_glif;
33mod sc_scaled_reset_adaptive_if;
34mod sc_six_state_thalamocortical;
35mod traub_miles;
36mod wang_buzsaki;
37mod yamada;
38pub use reexports::*;
39pub fn safe_rate(
42 number_factor: f64,
43 v_offset: f64,
44 v: f64,
45 denom_scale: f64,
46 fallback: f64,
47) -> f64 {
48 let d = v + v_offset;
49 if d.abs() < 1e-7 {
50 fallback
51 } else {
52 number_factor * d / (1.0 - (-d / denom_scale).exp())
53 }
54}