mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
31 lines
438 B
C++
31 lines
438 B
C++
/*
|
||
* DIFF.h
|
||
*
|
||
* Created on: 2013-4-18
|
||
* Author: fasiondog
|
||
*/
|
||
|
||
#ifndef DIFF_H_
|
||
#define DIFF_H_
|
||
|
||
#include "../Indicator.h"
|
||
|
||
namespace hku {
|
||
|
||
/**
|
||
* 差分指标,即data[i] - data[i-1]
|
||
* @ingroup Indicator
|
||
*/
|
||
Indicator HKU_API DIFF();
|
||
|
||
/**
|
||
* 差分指标,即data[i] - data[i-1]
|
||
* @param data 待计算数据
|
||
* @ingroup Indicator
|
||
*/
|
||
Indicator HKU_API DIFF(const Indicator& data);
|
||
|
||
} /* namespace */
|
||
|
||
#endif /* DIFF_H_ */
|