Assessing the continuum between temperament and affective illness: psychiatric and mathematical perspectives