40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
/**
|
||
* @file eqpalg/distribution/nd_test.h
|
||
* @brief 正态性检验
|
||
* @author Cat (null.null.null@qq.com)
|
||
* @version 0.1
|
||
* @date 2021-09-17
|
||
*
|
||
* Copyright: Baosight Co. Ltd.
|
||
* DO NOT COPY/USE WITHOUT PERMISSION
|
||
*
|
||
*/
|
||
#pragma once
|
||
#include <sstream>
|
||
#include <string>
|
||
#include <tuple>
|
||
#include <cmath>
|
||
#include <algorithm>
|
||
#include <vector>
|
||
#include <dlib/statistics.h>
|
||
#include <boost/math/statistics/anderson_darling.hpp>
|
||
namespace distribution {
|
||
/**
|
||
* @brief 正态分布检测函数
|
||
* @param data 数据
|
||
* @param rs 特征信息
|
||
* @return std::tuple<int, std::string> [正态分布评分
|
||
* (>=5则不满足正态分布,这个数据是我自己确定的,缺乏依据),正态分布信息]
|
||
*/
|
||
std::tuple<int, std::string> nd_test(std::vector<double> data,
|
||
dlib::running_stats<double> rs);
|
||
|
||
/**
|
||
* @brief 正态分布检测函数
|
||
* @param rs 特征信息
|
||
* @return std::tuple<int, std::string> [正态分布评分
|
||
* (>=5则不满足正态分布,这个数据是我自己确定的,缺乏依据),正态分布信息]
|
||
*/
|
||
std::tuple<int, std::string> nd_test(dlib::running_stats<double> rs);
|
||
} // namespace distribution
|