Calculate a functional principal component basis representation for functional data on one-dimensional domains