removed Scalar template parameter from the history. we only need the ordinal type as weights will always be double precision