eis/eqpalg/.do_not_use/distribution/nd_test.h

40 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @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