statistics.cpp File Reference

Classes for descriptive statistics. More...

#include "mcmc++/statistics.h"

Include dependency graph for statistics.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, Statistic &st)


Detailed Description

Classes for descriptive statistics.

This file provides two statistical classes: Statistic and SimpleStatistic. As the names suggest, Statistic is more complete. It includes methods for standard deviation and coefficient of variation as well as mean and variance. It can also calculate statistics on ratios (using ratio.h)

Author:
Kent Holsinger
Date:
2005-05-18

Definition in file statistics.cpp.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
Statistic st 
)

Stream output for Statistic.

Reports sample size, mean, variance, standard deviation, and coefficient of variation, each preceded by a tab and appearing on a new line.

Parameters:
out The output stream
st The statistics

Definition at line 202 of file statistics.cpp.

References Statistic::CV(), Statistic::Mean(), Statistic::N(), Statistic::StdDev(), and Statistic::Variance().


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