Functional Approach to Optimal Experimental Design