armanbilge / schrodinger

Give your cats a set of dice
Apache License 2.0
36 stars 4 forks source link

Introduce `Logarithmic` #248

Closed armanbilge closed 1 year ago

armanbilge commented 1 year ago

Inspired by cats.Parallel, for modeling e.g. the relationship between Double and LogDouble. They are the same datatype, with two different algebras.

Practically, this helps to interface between probability-native APIs (where LogDouble is an ideal representation) and "numerical" APIs (typically inference algorithms, which may be in terms of e.g. potential energy).