Shaped 1d SSA (first version)