mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
36 lines
508 B
C++
36 lines
508 B
C++
/*
|
|
* SIN.h
|
|
*
|
|
* Copyright (c) 2019 hikyuu.org
|
|
*
|
|
* Created on: 2019-5-1
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#ifndef INDICATOR_CRT_SIN_H_
|
|
#define INDICATOR_CRT_SIN_H_
|
|
|
|
#include "CVAL.h"
|
|
|
|
namespace hku {
|
|
|
|
/**
|
|
* 正弦值
|
|
* @ingroup Indicator
|
|
*/
|
|
Indicator HKU_API SIN();
|
|
Indicator SIN(price_t);
|
|
Indicator SIN(const Indicator& ind);
|
|
|
|
inline Indicator SIN(const Indicator& ind) {
|
|
return SIN()(ind);
|
|
}
|
|
|
|
inline Indicator SIN(price_t val) {
|
|
return SIN(CVAL(val));
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* INDICATOR_CRT_SIN_H_ */
|