mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
34 lines
505 B
C++
34 lines
505 B
C++
/*
|
|
* EXP.h
|
|
*
|
|
* Created on: 2019-4-3
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#ifndef INDICATOR_CRT_EXP_H_
|
|
#define INDICATOR_CRT_EXP_H_
|
|
|
|
#include "CVAL.h"
|
|
|
|
namespace hku {
|
|
|
|
/**
|
|
* 指数, EXP(X)为e的X次幂
|
|
* @ingroup Indicator
|
|
*/
|
|
Indicator HKU_API EXP();
|
|
Indicator EXP(price_t);
|
|
Indicator EXP(const Indicator& ind);
|
|
|
|
inline Indicator EXP(const Indicator& ind) {
|
|
return EXP()(ind);
|
|
}
|
|
|
|
inline Indicator EXP(price_t val) {
|
|
return EXP(CVAL(val));
|
|
}
|
|
|
|
} /* namespace */
|
|
|
|
#endif /* INDICATOR_CRT_EXP_H_ */
|