Krein Space Methods for Structured Data