Ignore:
Timestamp:
Sep 24, 2011, 10:53:04 PM (10 years ago)
Author:
Peter
Message:

refs #671. Follow Knuth's algorithm to calculate average and variance online

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/Averager.h

    r2161 r2558  
    88  Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
    99  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    10   Copyright (C) 2009, 2010 Peter Johansson
     10  Copyright (C) 2009, 2010, 2011 Peter Johansson
    1111
    1212  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    179179  private:
    180180    long  n_;
    181     double  x_, xx_;
     181    double  mean_, m2_;
    182182  };
    183183 
Note: See TracChangeset for help on using the changeset viewer.