Mathematical representation of "gene signatures"
There are mathematical definitions of "gene signature". Please have a look at the supplemental material of Subramanian et al. PNAS 2005, one of the first papers on "gene signatures", and a method and tool which is still commonly used in basic research. 

Note that Subramanian et al. have multiple definitions and that copying them here would exceed the scope of this page.