Could anybody explain the weight function when used in an orthogonality relation and normalising a set of orthonormal functions.