ENH: Add continuous HPI position calculation

@mluessi I'll trade you reviews :)