Pattern recognition preprocessing by similarity functionals | Synapse