refactor get_log_probability_f()
Merge pull request #1214 from votjakovr/feature/gp_refactoring

refactor get_log_probability_f()