Changeset 4009


Ignore:
Timestamp:
Oct 19, 2020, 2:54:47 AM (12 months ago)
Author:
Peter
Message:

closes #965; Default constructor for DiscreteGeneral?

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/rnd.cc

    r3893 r4009  
    5454  suite.err() << "Checking that all random generators can be constructed\n";
    5555  theplu::yat::statistics::Histogram histogram(0,100,1000);
     56  std::vector<DiscreteGeneral> discrete(10);
    5657  DiscreteGeneral dg(histogram);
    5758  DiscreteUniform du;
  • trunk/yat/random/random.cc

    r3999 r4009  
    217217    return gsl_ran_binomial(rng_->rng(), p_, n_);
    218218  }
     219
     220
     221  DiscreteGeneral::DiscreteGeneral(void)
     222    : gen_(nullptr)
     223  {}
    219224
    220225
  • trunk/yat/random/random.h

    r3959 r4009  
    341341  {
    342342  public:
     343    /**
     344       Default constructor leaves the object uninitialized and
     345       behaviour of operator() is undefined.
     346
     347       \since New in yat 0.19
     348     */
     349    DiscreteGeneral(void);
     350
    343351    ///
    344352    /// @brief Constructor
Note: See TracChangeset for help on using the changeset viewer.