hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/NOT.h
2019-04-02 21:49:33 +08:00

35 lines
603 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* NOT.h
*
* Created on: 2019-4-2
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_NOT_H_
#define INDICATOR_CRT_NOT_H_
#include "../Indicator.h"
namespace hku {
/**
* 求逻辑非。NOT(X)返回非X,即当X=0时返回1否则返回0。
* @ingroup Indicator
*/
Indicator HKU_API NOT();
/**
* 求逻辑非。NOT(X)返回非X,即当X=0时返回1否则返回0。
* @param ind 待计算的数据
* @ingroup Indicator
*/
Indicator NOT(const Indicator& ind);
inline Indicator NOT(const Indicator& ind) {
return NOT()(ind);
}
} /* namespace */
#endif /* INDICATOR_CRT_NOT_H_ */