Merge pull request #716 from nasa/715

Add accessor for MonteVarRandom::randist
This commit is contained in:
dbankieris 2018-12-04 12:51:38 -06:00 committed by GitHub
commit 6b6e4ea027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; } 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. // Describes the properties of this variable.
std::string describe_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;
}