State estimation using continuous orthogonal functions