mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
33 lines
594 B
C++
33 lines
594 B
C++
/*
|
||
* StdDeviation.h
|
||
*
|
||
* Created on: 2013-4-18
|
||
* Author: fasiondog
|
||
*/
|
||
|
||
#ifndef STDDEVIATION_H_
|
||
#define STDDEVIATION_H_
|
||
|
||
#include "../Indicator.h"
|
||
|
||
namespace hku {
|
||
|
||
/*
|
||
* 计算N周期内样本标准差
|
||
* 参数: n: N日时间窗口
|
||
* TODO ma : 计算均值的函数原型
|
||
* link:均值参数联动标志,默认true
|
||
*
|
||
*/
|
||
class StdDeviation: public hku::IndicatorImp {
|
||
INDICATOR_IMP(StdDeviation)
|
||
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
||
|
||
public:
|
||
StdDeviation();
|
||
virtual ~StdDeviation();
|
||
};
|
||
|
||
} /* namespace hku */
|
||
#endif /* STDDEVIATION_H_ */
|