{HEAD ~ The filtered signal} is squared to provide a squared signal alternating at the frequency fm between values related to sin2 fx and {TAIL ~ cos2} fx 
{ HEAD ~ The filtered signal } is squared to provide a squared signal alternating at the frequency fm between values related to sin2 fx and { TAIL ~ cos2 } fx
HEAD HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL OTH