// // Purpose: // to implement Yao's algorithm // // Authors: // Frederico R. B. Cruz // Rosangela H. Loschi // Departamento de Estatistica // Universidade Federal de Minas Gerais // E-mail: {fcruz,loschi}@est.ufmg.br // // Version: // 1.00 // // Date: // May/2003 // // // inclusion of standard libraries #include #include // prior parameters of mu (normal case) #define mPrior(i,j) (0.0) #define vPrior(i,j) (1.0) // prior parameters of sigma^2 (normal case) #define aPrior(i,j) (0.01) #define dPrior(i,j) (4.0) // inclusion of change point library #include "chpyao.hpp" // main program int main(int argc, char *argv[]) { // checking input if (argc < 2) { fprintf(stderr,"Usage: %s