Cognitive algebra and sensation measurement