NCBI C++ ToolKit
Macros | Functions
thrdrsmp.c File Reference
#include <algo/structure/threader/thrdatd.h>
#include <algo/structure/threader/thrddecl.h>
#include <stdio.h>
#include <math.h>
+ Include dependency graph for thrdrsmp.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define M1   259200
 
#define IA1   7141
 
#define IC1   54773
 
#define RM1   (1.0/M1)
 
#define M2   134456
 
#define IA2   8121
 
#define IC2   28411
 
#define RM2   (1.0/M2)
 
#define M3   243000
 
#define IA3   4561
 
#define IC3   51349
 

Functions

int rsmp (Rnd_Smp *pvl)
 
float Rand01 (int *idum)
 

Macro Definition Documentation

◆ IA1

#define IA1   7141

Definition at line 76 of file thrdrsmp.c.

◆ IA2

#define IA2   8121

Definition at line 80 of file thrdrsmp.c.

◆ IA3

#define IA3   4561

Definition at line 84 of file thrdrsmp.c.

◆ IC1

#define IC1   54773

Definition at line 77 of file thrdrsmp.c.

◆ IC2

#define IC2   28411

Definition at line 81 of file thrdrsmp.c.

◆ IC3

#define IC3   51349

Definition at line 85 of file thrdrsmp.c.

◆ M1

#define M1   259200

Definition at line 75 of file thrdrsmp.c.

◆ M2

#define M2   134456

Definition at line 79 of file thrdrsmp.c.

◆ M3

#define M3   243000

Definition at line 83 of file thrdrsmp.c.

◆ RM1

#define RM1   (1.0/M1)

Definition at line 78 of file thrdrsmp.c.

◆ RM2

#define RM2   (1.0/M2)

Definition at line 82 of file thrdrsmp.c.

Function Documentation

◆ Rand01()

float Rand01 ( int idum)

Definition at line 87 of file thrdrsmp.c.

References IA1, IA2, IA3, IC1, IC2, IC3, M1, M2, M3, r(), RM1, and RM2.

Referenced by atd(), and rsmp().

◆ rsmp()

int rsmp ( Rnd_Smp pvl)

Definition at line 48 of file thrdrsmp.c.

References i, _Rnd_Smp::n, _Rnd_Smp::p, r(), and Rand01().

Referenced by algs(), atd(), and sgoi().

Modified on Fri Sep 20 14:58:29 2024 by modify_doxy.py rev. 669887