LibRan  0.1
Pseudo-random number distribution generator
Data Fields
LR_pcs Struct Reference

A special object for defining some of the random variate distributions. More...

#include <libran.h>

Data Fields

int n
 
int nn
 
double * bdrs
 
double * c
 
double * sc
 
double norm
 
int flags
 
int(* new )(LR_obj *o, int n)
 
int(* rm )(LR_obj *o)
 
int(* set )(LR_obj *o, double x, double p)
 
int(* normalize )(LR_obj *o)
 

Detailed Description

A special object for defining some of the random variate distributions.

The LR_pcs object is not referenced directly by the program and is only used by the special piecewise uniform and the linear spline random variate distributions, and is referenced through the LR_obj aux attribute.

In this object are attributes concerning the tallying of samples and the rest are for generic referencing specific methods given the random variate.

Definition at line 206 of file libran.h.

Field Documentation

◆ bdrs

double* bdrs

bdrs - set of interval boundaries (n-1)

Definition at line 209 of file libran.h.

◆ c

double* c

c - relative probability for each interval (n)

Definition at line 210 of file libran.h.

◆ flags

int flags

flags to guarantee certain actions special auxiliary methods

Definition at line 213 of file libran.h.

◆ n

int n

n - number of intervals

Definition at line 207 of file libran.h.

◆ new

int(* new) (LR_obj *o, int n)

aux new fn

Definition at line 216 of file libran.h.

◆ nn

int nn

nn - number of intervals declared

Definition at line 208 of file libran.h.

◆ norm

double norm

norm - normalization factor for c

Definition at line 212 of file libran.h.

◆ normalize

int(* normalize) (LR_obj *o)

aux normalize points fn

Definition at line 219 of file libran.h.

◆ rm

int(* rm) (LR_obj *o)

aux rm fn

Definition at line 217 of file libran.h.

◆ sc

double* sc

sc - cumulative probability for each interval (n)

Definition at line 211 of file libran.h.

◆ set

int(* set) (LR_obj *o, double x, double p)

aux set points fn

Definition at line 218 of file libran.h.


The documentation for this struct was generated from the following file: