intervals.h

Go to the documentation of this file.
00001 ///
00002 /// \file   intervals.h
00003 /// \brief  declarations for quantile(), p_value(), and hpd()
00004 /// \author Kent Holsinger
00005 /// \date   2004-06-26
00006 ///
00007 
00008 
00009 // This file is part of MCMC++, a library for constructing C++ programs
00010 // that implement MCMC analyses of Bayesian statistical models.
00011 // Copyright (c) 2004-2006 Kent E. Holsinger
00012 //
00013 // MCMC++ is free software; you can redistribute it and/or modify
00014 // it under the terms of the GNU General Public License as published by
00015 // the Free Software Foundation; either version 2 of the License, or
00016 // (at your option) any later version.
00017 //
00018 // MCMC++ is distributed in the hope that it will be useful,
00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021 // GNU General Public License for more details.
00022 //
00023 // You should have received a copy of the GNU General Public License
00024 // along with MCMC++; if not, write to the Free Software
00025 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 //
00027 
00028 #if !defined(__INTERVALS_H)
00029 #define __INTERVALS_H
00030 
00031 
00032 // standard includes
00033 #include <cmath>
00034 #include <vector>
00035 
00036 double quantile(std::vector<double>& x, double p);
00037 double p_value(std::vector<double>& x, double p);
00038 std::vector<double> hpd(std::vector<double>& x, double p);
00039 
00040 #endif
00041 
00042 // Local Variables: //
00043 // mode: c++ //
00044 // End: //
00045 

Generated on Tue Mar 27 16:03:38 2007 for mcmc by  doxygen 1.5.1