Added accessor functions
Todo
Avoid allocations in predict() and predictVariance() for real-time execution.