40 lines
924 B
C
40 lines
924 B
C
|
|
/*********************************************************************
|
||
|
|
*
|
||
|
|
* 文 件: 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
|