mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
28 lines
429 B
C++
28 lines
429 B
C++
/*
|
||
* MA.h
|
||
*
|
||
* Created on: 2013-2-14
|
||
* Author: fasiondog
|
||
*/
|
||
|
||
#ifndef MA_H_
|
||
#define MA_H_
|
||
|
||
#include "../Indicator.h"
|
||
|
||
namespace hku {
|
||
|
||
/**
|
||
* 简单移动平均
|
||
* @param data 待计算的数据
|
||
* @param n 计算均值的周期窗口,必须为大于0的整数
|
||
* @ingroup Indicator
|
||
*/
|
||
Indicator HKU_API MA(int n = 22);
|
||
Indicator HKU_API MA(const Indicator& data, int n = 22);
|
||
|
||
} /* namespace */
|
||
|
||
|
||
#endif /* MA_H_ */
|