Final version of LocDirectPattern, LocTernPattern and ModCensusPattern, including doxygen comments.