Nevermind; I misunderstood the case in which you may change the return type of a virtual function. Apparantly, you are supposed to modify lower and upper, and the return type should remain void (as, for example, src/modules/bugs/distributions/DCat.cc shows).
Dear all, I am trying to write a module that implements a two-dimensional distribution. It seems that inheriting from VectorDist (declared in distribution/VectorDist.h) is the correct thing to do. However, I can't figure out what return type is intended when overriding the pure virtual member function support(). The description says: Returns the support of an unbounded distribution, but how is "the support" stored? The parent header Distribution.h does not seem to define a suitable struct. The full...