当前位置: 首页>>代码示例>>Java>>正文


Java OptInputParameterType.TA_OptInput_RealRange方法代码示例

本文整理汇总了Java中com.tictactec.ta.lib.meta.annotation.OptInputParameterType.TA_OptInput_RealRange方法的典型用法代码示例。如果您正苦于以下问题:Java OptInputParameterType.TA_OptInput_RealRange方法的具体用法?Java OptInputParameterType.TA_OptInput_RealRange怎么用?Java OptInputParameterType.TA_OptInput_RealRange使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.tictactec.ta.lib.meta.annotation.OptInputParameterType的用法示例。


在下文中一共展示了OptInputParameterType.TA_OptInput_RealRange方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setOptInputParamReal

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
/**
 * Assigns an <b>double</b> value to an optional input parameter
 * which is expected to be assignment compatible to <b>double</b>.
 * 
 * @param paramIndex is the n-th optional input parameter
 * @param value is the <b>double</b> value
 * @throws IllegalArgumentException
 */
public void setOptInputParamReal(final int paramIndex, final double value) throws IllegalArgumentException {
    OptInputParameterInfo param = getOptInputParameterInfo(paramIndex);
    if (param.type()==OptInputParameterType.TA_OptInput_RealList) {
        RealList list = getOptInputRealList(paramIndex);
        for (double entry : list.value()) {
            if (value==entry) {
                if (callOptInputParams==null) callOptInputParams = new Object[getFuncInfo().nbOptInput()];
                callOptInputParams[paramIndex] = value;
                return;
            }
        }
    } else if (param.type()==OptInputParameterType.TA_OptInput_RealRange) {
        RealRange range = getOptInputRealRange(paramIndex);
        if ((value >= range.min())&&(value <= range.max())) {
            if (callOptInputParams==null) callOptInputParams = new Object[getFuncInfo().nbOptInput()];
            callOptInputParams[paramIndex] = value;
            return;
        }
    }
    throw new InternalError(CONTACT_DEVELOPERS);
}
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:30,代码来源:CoreMetaData.java

示例2: cdlAbandonedBaby

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLABANDONEDBABY",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlAbandonedBaby(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlAbandonedBaby (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例3: cdlDarkCloudCover

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLDARKCLOUDCOVER",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlDarkCloudCover(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.50000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlDarkCloudCover (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例4: cdlEveningDojiStar

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLEVENINGDOJISTAR",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlEveningDojiStar(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlEveningDojiStar (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例5: cdlEveningStar

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLEVENINGSTAR",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlEveningStar(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlEveningStar (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例6: cdlMatHold

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLMATHOLD",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlMatHold(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.50000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlMatHold (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例7: cdlMorningDojiStar

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLMORNINGDOJISTAR",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlMorningDojiStar(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlMorningDojiStar (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例8: cdlMorningStar

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "CDLMORNINGSTAR",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlMorningStar(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlMorningStar (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:61,代码来源:CoreAnnotated.java

示例9: mama

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "MAMA",
        group = "Overlap Studies",
        flags = 150994944,
        nbInput    = 1,
        nbOptInput = 2,
        nbOutput   = 2
)
public RetCode mama(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inReal",
                flags     = 0,
                type = InputParameterType.TA_Input_Real
            )
            double inReal[],
            @OptInputParameterInfo(
                paramName    = "optInFastLimit",
                displayName  = "Fast Limit",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInFastLimit",
                    defaultValue = 0.50000,
                    min          = 0.01000,
                    max          = 0.99000,
                    precision    = 2,
                    suggested_start     = 0.21000,
                    suggested_end       = 0.80000,
                    suggested_increment = 0.01000
            )
            double optInFastLimit,
            @OptInputParameterInfo(
                paramName    = "optInSlowLimit",
                displayName  = "Slow Limit",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInSlowLimit",
                    defaultValue = 0.05000,
                    min          = 0.01000,
                    max          = 0.99000,
                    precision    = 2,
                    suggested_start     = 0.01000,
                    suggested_end       = 0.60000,
                    suggested_increment = 0.01000
            )
            double optInSlowLimit,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outMAMA",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outMAMA[],
            @OutputParameterInfo(
                paramName = "outFAMA",
                flags     = 4,
                type = OutputParameterType.TA_Output_Real
            )
            double outFAMA[]
) {
    return super.mama (
        startIdx,
        endIdx,
        inReal,
        optInFastLimit,
        optInSlowLimit,
        outBegIdx,
        outNBElement,
        outMAMA,
        outFAMA
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:80,代码来源:CoreAnnotated.java

示例10: sar

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "SAR",
        group = "Overlap Studies",
        flags = 16777216,
        nbInput    = 1,
        nbOptInput = 2,
        nbOutput   = 1
)
public RetCode sar(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHL",
                flags     = 6,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            @OptInputParameterInfo(
                paramName    = "optInAcceleration",
                displayName  = "Acceleration Factor",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInAcceleration",
                    defaultValue = 0.02000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 4,
                    suggested_start     = 0.01000,
                    suggested_end       = 0.20000,
                    suggested_increment = 0.01000
            )
            double optInAcceleration,
            @OptInputParameterInfo(
                paramName    = "optInMaximum",
                displayName  = "AF Maximum",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInMaximum",
                    defaultValue = 0.20000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 4,
                    suggested_start     = 0.20000,
                    suggested_end       = 0.40000,
                    suggested_increment = 0.01000
            )
            double optInMaximum,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.sar (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        optInAcceleration,
        optInMaximum,
        outBegIdx,
        outNBElement,
        outReal
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:75,代码来源:CoreAnnotated.java

示例11: stdDev

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "STDDEV",
        group = "Statistic Functions",
        flags = 0,
        nbInput    = 1,
        nbOptInput = 2,
        nbOutput   = 1
)
public RetCode stdDev(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inReal",
                flags     = 0,
                type = InputParameterType.TA_Input_Real
            )
            double inReal[],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 5,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            @OptInputParameterInfo(
                paramName    = "optInNbDev",
                displayName  = "Deviations",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInNbDev",
                    defaultValue = 1.00000,
                    min          = -30000000000000002000000000000000000000.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 2,
                    suggested_start     = -2.00000,
                    suggested_end       = 2.00000,
                    suggested_increment = 0.20000
            )
            double optInNbDev,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.stdDev (
        startIdx,
        endIdx,
        inReal,
        optInTimePeriod,
        optInNbDev,
        outBegIdx,
        outNBElement,
        outReal
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:72,代码来源:CoreAnnotated.java

示例12: t3

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "T3",
        group = "Overlap Studies",
        flags = 150994944,
        nbInput    = 1,
        nbOptInput = 2,
        nbOutput   = 1
)
public RetCode t3(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inReal",
                flags     = 0,
                type = InputParameterType.TA_Input_Real
            )
            double inReal[],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 5,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            @OptInputParameterInfo(
                paramName    = "optInVFactor",
                displayName  = "Volume Factor",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInVFactor",
                    defaultValue = 0.70000,
                    min          = 0.00000,
                    max          = 1.00000,
                    precision    = 2,
                    suggested_start     = 0.01000,
                    suggested_end       = 1.00000,
                    suggested_increment = 0.05000
            )
            double optInVFactor,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.t3 (
        startIdx,
        endIdx,
        inReal,
        optInTimePeriod,
        optInVFactor,
        outBegIdx,
        outNBElement,
        outReal
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:72,代码来源:CoreAnnotated.java

示例13: variance

import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; //导入方法依赖的package包/类
@FuncInfo(
        name  = "VAR",
        group = "Statistic Functions",
        flags = 0,
        nbInput    = 1,
        nbOptInput = 2,
        nbOutput   = 1
)
public RetCode variance(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inReal",
                flags     = 0,
                type = InputParameterType.TA_Input_Real
            )
            double inReal[],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 5,
                    min          = 1,
                    max          = 100000,
                    suggested_start     = 1,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            @OptInputParameterInfo(
                paramName    = "optInNbDev",
                displayName  = "Deviations",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInNbDev",
                    defaultValue = 1.00000,
                    min          = -30000000000000002000000000000000000000.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 2,
                    suggested_start     = -2.00000,
                    suggested_end       = 2.00000,
                    suggested_increment = 0.20000
            )
            double optInNbDev,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.variance (
        startIdx,
        endIdx,
        inReal,
        optInTimePeriod,
        optInNbDev,
        outBegIdx,
        outNBElement,
        outReal
); }
 
开发者ID:BYVoid,项目名称:TA-Lib,代码行数:72,代码来源:CoreAnnotated.java


注:本文中的com.tictactec.ta.lib.meta.annotation.OptInputParameterType.TA_OptInput_RealRange方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。