ADMB Documentation  11.1.1920
 All Classes Files Functions Variables Typedefs Friends Defines
tdev.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: tdev.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #define HOME_VERSION
00012 #include <df1b2fun.h>
00013 
00018   df1b2variable t_deviate(const df1b2variable& _x,const df1b2variable& _a)
00019   {
00020     df1b2variable& x= (df1b2variable&)(_x);
00021     df1b2variable& a= (df1b2variable&)(_a);
00022 
00023     df1b2variable y=cumd_norm(x);
00024     y=.9999*y+.00005;
00025 
00026     df1b2variable z=inv_cumd_t(y,a);
00027 
00028     return z;
00029   }