C++: class logistic_normal