Metric properties of functions defined by partial automata