Statistics
| Revision:

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

History | View | Annotate | Download (584 Bytes)

1
/*
2
 * $Id: tdev.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
#define HOME_VERSION
12
#include <df1b2fun.h>
13

    
14
/**
15
 * Description not yet available.
16
 * \param
17
 */
18
  df1b2variable t_deviate(const df1b2variable& _x,const df1b2variable& _a)
19
  {
20
    df1b2variable& x= (df1b2variable&)(_x);
21
    df1b2variable& a= (df1b2variable&)(_a);
22

    
23
    df1b2variable y=cumd_norm(x);
24
    y=.9999*y+.00005;
25

    
26
    df1b2variable z=inv_cumd_t(y,a);
27

    
28
    return z;
29
  }