Simple hair cell model. Greater size input (positive values only, ie only in one direction as in real inner hair cells) opens the ion channels more to receive chemicals at rate minrate+(input*rate). If the accumulated chemical reaches 1.0 units, the cell fires, going to output value 1.0, and then decaying each sample with a loss factor. There is a limited store of chemicals, which is constantly being replenished at rate restorerate. The flow variables here are frequencies; they state how many times the store could be replenished per second (restorerate), how long the hair cell takes to fire without any external input (spontaneous firing rate spontaneousrate, can be 0, otherwise baseline firing rate) and the amount that input boosts the chemical flow rate leading to cell fire (boostrate).
input to be processed (essentially, basilar membrane motion at a particular point, pulling an inner hair cell's stereocilia)