Fixed samples < # of pieces
Add Base.abs
Return real if PeriodicInterval