Project

General

Profile

Revision b06b7bbd

IDb06b7bbdd5e9412dc1e40ab6794b47a66e0e9aea

Added by Simon Tenbusch about 9 years ago

[random number generator] clean up: removing unused wrapper methods from cAsyncmodule

View differences:

include/casyncmodule.h
253 253
    virtual int sendDirect(cMessage *msg, simtime_t delay, simtime_t duration, cGate *inputgate);
254 254
    //}@
255 255

  
256

  
257
    /*
258
     *
259
     * Wrapper methods for numberGenerator Method calls
260
     *
261
     */
262
/*
263
    inline double uniform(double a, double b, int rng=0) {
264
        return numGen->uniform(a,b,rng);
265
    }
266

  
267
    inline double exponential(double mean, int rng=0) {
268
        return numGen->exponential(mean, rng);
269
    }
270

  
271
    inline double normal(double mean, double stddev, int rng=0) {
272
        return numGen->normal(mean,stddev, rng);
273
    }
274

  
275
    inline double truncnormal(double mean, double stddev, int rng=0) {
276
        return numGen->truncnormal(mean,stddev, rng);
277
    }
278

  
279
    inline double gamma_d(double alpha, double theta, int rng=0) {
280
        return numGen->gamma_d(alpha, theta, rng);
281
    }
282

  
283
    inline double beta(double alpha1, double alpha2, int rng=0) {
284
        return numGen->beta(alpha1,alpha2, rng);
285
    }
286

  
287
    inline double erlang_k(unsigned int k, double mean, int rng=0) {
288
        return numGen->erlang_k(k, mean, rng);
289
    }
290

  
291
    inline double chi_square(unsigned int k, int rng=0) {
292
        return numGen->chi_square(k, rng);
293
    }
294

  
295
    inline double student_t(unsigned int i, int rng=0) {
296
        return numGen->student_t(i, rng);
297
    }
298

  
299
    inline double cauchy(double a, double b, int rng=0) {
300
        return numGen->cauchy(a,b, rng);
301
    }
302

  
303
    inline double triang(double a, double b, double c, int rng=0) {
304
        return numGen->triang(a,b,c, rng);
305
    }
306

  
307
    inline double lognormal(double m, double w, int rng=0) {
308
        return numGen->lognormal(m,w, rng);
309
    }
310

  
311
    inline double weibull(double a, double b, int rng=0) {
312
        return numGen->weibull(a,b, rng);
313
    }
314

  
315
    inline double pareto_shifted(double a, double b, double c, int rng=0) {
316
        return numGen->pareto_shifted(a,b,c, rng);
317
    }
318

  
319
    inline int intuniform(int a, int b, int rng=0) {
320
        return numGen->intuniform(a,b, rng);
321
    }
322

  
323
    inline int bernoulli(double p, int rng=0) {
324
        return numGen->bernoulli(p, rng);
325
    }
326

  
327
    inline int binomial(int n, double p, int rng=0) {
328
        return numGen->binomial(n,p, rng);
329
    }
330

  
331
    inline int geometric(double p, int rng=0) {
332
        return numGen->geometric(p, rng);
333
    }
334

  
335
    inline int negbinomial(int n, double p, int rng=0) {
336
        return numGen->negbinomial(n,p, rng);
337
    }
338

  
339
    inline int poisson(double lambda, int rng=0) {
340
        return numGen->poisson(lambda, rng);
341
    }
342

  
343
    inline long intrand(long r) {
344
        return numGen->intrand(r);
345
    }
346

  
347
    inline double dblrand() {
348
        return numGen->dblrand();
349
    }
350
*/
351 256
};
352 257

  
353 258
#endif /* __CASYNCMODULE_H */

Also available in: Unified diff