00001 #include "statsLib.h" 00002 00015 //inverse-gamma 00016 dvariable dinvgamma(const dvariable& x, const double a, const double b) 00017 { 00018 return -a*log(b)+gammln(a)+(a+1)*log(x)+b/x; 00019 }