Java TA-Lib文档 [英] Java TA-Lib Documentation

查看:478
本文介绍了Java TA-Lib文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关Java中 TA-Lib 的文档。我找到了页面,其中包含可用功能列表,并找到这个

I was looking for a documentation on TA-Lib in Java. I have found the page containing the list of available functions, and found this.

我看到 TADOCS 提供了一些函数的算法。但是我无法理解该函数所需的参数,似乎确实提到了它。有什么地方我能找到它吗?

I see TADOCS provided the algorithms on some of the functions. However I was not able to understand the required parameters for the function, it does seemed to be mentioned. Is there anywhere where I could find it ?

具体来说,我看的更多是

Specifically, I was looking more for

LINEARREG       Linear Regression

Eclipse将线性回归指定为:

Eclipse specifies linear regression as :

linearReg(startIdx, endIdx, inReal, optInTimePeriod, outBegIdx, outNBElement, outReal)

我可以参考的任何地方吗?

Is there anywhere I could refer to ?

已编辑

我不清楚的另一件事是如何指定 TA_INTEGER_DEFAULT TA_REAL_DEFAULT 的值,如果它们没有被使用?
我在 c ++ docs

The other thing I am unclear is how do I specify the values of TA_INTEGER_DEFAULT or TA_REAL_DEFAULT if they are not used ? I see this in the c++ docs

如果您不关心特定的optIn,只需指定TA_INTEGER_DEFAULT或TA_REAL_DEFAULT(取决于类型)。

推荐答案

我能够像这样使用linearreg:

I was able to use linearreg like that:

    double reg_result;
    MInteger begin = new MInteger();
    MInteger length = new MInteger();
    c = new Core();
    RetCode retCode = c.linearReg(0, intLRLength-1, dataset,intLRLength, begin, length, high_reg);

    if(retCode == RetCode.Success){

        console.getOut().println("reg_result"+reg_result);  

        }

您还可以查看 Ta-lib c ++文档,以了解函数的实现方式。

You can also look at the Ta-lib c++ documentation to get an idea of how the functions are implemented.

这篇关于Java TA-Lib文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆