Statistics
| Revision:

root / branches / pthreads-737 / src / df1b2-separable / df1b2betdev.cpp @ 765

History | View | Annotate | Download (657 Bytes)

1
/*
2
 * $Id: df1b2betdev.cpp 542 2012-07-10 21:04:06Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include "df1b2fun.h"
12

    
13
/**
14
 * Description not yet available.
15
 * \param
16
 */
17
df1b2variable beta_deviate(const df1b2variable& _a,const df1b2variable& _b,
18
  const df1b2variable& _x,double eps)
19
{
20
  df1b2variable& x= (df1b2variable&)(_x);
21
  df1b2variable& a= (df1b2variable&)(_a);
22
  df1b2variable& b= (df1b2variable&)(_b);
23

    
24
  df1b2variable y=cumd_norm(x);
25
  y=.9999999*y+.00000005;
26

    
27
  df1b2variable z=inv_cumd_beta_stable(a,b,y,eps);
28

    
29
  return z;
30
}