File: smat_meal_passrng.h

package info (click to toggle)
r-cran-pcapp 1.9-73-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 800 kB
  • sloc: cpp: 5,961; ansic: 917; sh: 13; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef SMAT_MEAL_PASSRNG_H
#define SMAT_MEAL_PASSRNG_H

#ifdef ES_DEV_ENV
	#include "../SMat/smat.h"
#else
	#include "smat.h"
#endif

	class CPassRng
	{
	public:

		CPassRng () ;

		double Get () ;
		void Set (double *pData, t_size n) ;

	protected:
		SVecD m_data ;
		double *m_pCurData, *m_pDataEnd ;
	} ;

	void pass_runif (double *pd, int n) ;
	void pass_rnorm (double *pd, int n) ;
	void pass_rexp  (double *pd, int n) ;


#endif	//	#ifndef SMAT_MEAL_PASSRNG_H