00001 #pragma once 00002 #ifndef NORMALS_H 00003 #define NORMALS_H 00004 00005 #include <valarray> 00006 #include "./types.h" 00007 #include "./utils.h" 00008 using namespace std; 00009 00010 Real NormalDensity(Real x); 00011 00012 Real CumulativeNormal(Real x); 00013 00014 Real InverseCumulativeNormal(Real x); 00015 00016 Real Average(valarray<Real> Ptr,LongNatural dim); 00017 00018 Real Maximize(valarray<Real> Ptr,LongNatural dim); 00019 00022 Real CumulativeBivariateNormal(Real a,Real b,Real rho); 00023 Real SubFunctionForBivariateNormal(Real X,Real y,Real ap,Real bp,Real rho); 00024 00025 #endif