Add accessor for MonteVarRandom::randist

Closes #715
This commit is contained in:
Derek Bankieris 2018-12-04 11:57:18 -06:00
parent 0394867dfd
commit 247fcc370d
2 changed files with 11 additions and 0 deletions

View File

@ -185,6 +185,13 @@ namespace Trick {
*/
double get_absolute_max() const { return (randist.rel_max) ? (randist.mu + randist.max) : randist.max; }
/**
* gets the random distribution
*
* @return the random distribution
*/
const TRICK_GSL_RANDIST& get_random_distribution();
// Describes the properties of this variable.
std::string describe_variable();

View File

@ -240,3 +240,7 @@ Trick::MonteVarRandom::updateStlRandom() {
}
}
}
const TRICK_GSL_RANDIST& Trick::MonteVarRandom::get_random_distribution() {
return randist;
}