16 #ifndef _CORETESTDISTRIBCOMPONENT_H
17 #define _CORETESTDISTRIBCOMPONENT_H
19 #include <sst/core/component.h>
20 #include <sst/core/rng/distrib.h>
23 using namespace SST::RNG;
26 namespace CoreTestDistribComponent {
33 SST_ELI_REGISTER_COMPONENT(
36 "coreTestDistribComponent",
37 SST_ELI_ELEMENT_VERSION(1,0,0),
38 "Random Number Distribution Component",
39 COMPONENT_CATEGORY_UNCATEGORIZED
42 SST_ELI_DOCUMENT_PARAMS(
43 {
"count",
"Number of random values to generate from the distribution",
"1000"},
44 {
"distrib",
"Random distribution to use - \"gaussian\" (or \"normal\"), or \"exponential\"",
"gaussian"},
45 {
"mean",
"Mean value to use if we are sampling from the Gaussian/Normal distribution",
"1.0"},
46 {
"stddev",
"Standard deviation to use for the distribution",
"0.2"},
47 {
"lambda",
"Lambda value to use for the exponential distribution",
"1.0"},
48 {
"binresults",
"Print the results, only if value is \"1\"",
"1"},
49 {
"probcount",
"Number of probabilities in discrete distribution",
"1"},
50 {
"prob%(probcount)d",
"Probability values for discrete distribution",
"1"}
54 SST_ELI_DOCUMENT_STATISTICS(
58 SST_ELI_DOCUMENT_PORTS(
62 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
74 virtual bool tick( SST::Cycle_t );
81 std::string dist_type;
83 std::map<int64_t, uint64_t>* bins;
Base class of statistical distributions in SST.
Definition: distrib.h:24
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_DistribComponent.h:67
Main component object for the simulation.
Definition: component.h:31
Definition: coreTest_DistribComponent.h:28
Parameter store.
Definition: params.h:44