The answer is yes, absolutely, absolutely 100%. but it's not all kinds of math, and it's not all kinds of programming. that ...
This correspondence between brain state and brain responsiveness (statedependent responses) is outlined at different scales from the cellular and circuit level, to the mesoscale and macroscale level.