hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/VARP.h
2019-05-02 12:19:43 +08:00

33 lines
539 B
C++

/*
* VARP.h
*
* Copyright (c) 2019 hikyuu.org
*
* Created on: 2013-4-18
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_VARP_H_
#define INDICATOR_CRT_VARP_H_
#include "../Indicator.h"
namespace hku {
/**
* 计算N周期内总体样本方差
* @param n N日时间窗口
* @ingroup Indicator
*/
Indicator HKU_API VARP(int n = 10);
Indicator VARP(const Indicator& data, int n = 10);
inline Indicator VARP(const Indicator& data, int n) {
return VARP(n)(data);
}
} /* namespace */
#endif /* INDICATOR_CRT_VARP_H_ */