Orthogonal bases approach for comparing nonnormal continuous distributions