www.pudn.com > ghs1.2.rar > statistics.h


/*
 * Copyright (c) 2000-2003 Illinois Institute of Technology.
 *                         All rights reserved.
 *
 * This file is part of the GHS software package.  For license
 * information, see the LICENSE file in the top level directory of the
 * GHS source distribution.
 *
 * Released Date: August 18 2005
 * This is the GHS I release by the
 *   SCS Group,
 *   http://www.cs.iit.edu/~scs
 *   Department of Computer Science,
 *   Illinois Institute of Technology.
 *
 * This release has been tested under SUN OS 5.9.
 *
 * Supervisor
 * ----------
 * Illiniois Institute of Technology:
 * -Dr. Xian-He Sun
 *
 * Author(s)
 * -----------------
 * Illinois Institute of Technology:
 * -Ming Wu
 * -Xian-He Sun
 *
 */

#ifndef STATISTICS_HEADER_TAG
#define STATISTICS_HEADER_TAG

#include

using namespace std;

class Statistics
{
  public:
    double CalculateMean(const vector& values);
    double CalculateSTD(const vector& values);
    double CalculateRandomAver(const vector &values, int maxnum, int numElements, int randvalue);
    double CalculateNonZeroMean(const vector& values);
    double CalculateAdaptiveMean(int hourIndex, int hourNumber, vector< vector >& values);
    double CalculateAdaptiveSTD(vector< vector >& values, int hourIndex, vector& meanvalues, vector& stdvalues);
};

#endif