eis/inc/eqpalg/stat/NormalDistribution.h

40 lines
924 B
C
Raw Normal View History

/*********************************************************************
*
* : NormalDistribution.h
*
* : Shanghai Baosight Software Co., Ltd.
* zoufuzhou
*********************************************************************/
#ifndef H_NORMAL_DISTRIBUTION_H
#define H_NORMAL_DISTRIBUTION_H
#include <iostream>
#include <eqpalg/AlgCommonDefine.h>
#include <vector>
using namespace std;
/*********************************************************************
* : NormalDistribution
* : Shanghai Baosight Software Co., Ltd.
*********************************************************************/
class NormalDistribution
{
public:
NormalDistribution(void);
NormalDistribution(vector<double> vdat);
void ReSet(vector<double> vdat);
int Analysis(double probability,ConfidenceInterval* cfdi);
private:
double m_avg;
double m_stddev;
};
#endif