Interface TaLibRTIndicatorAdapter.TaLibFunction
- Enclosing class:
TaLibRTIndicatorAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface wrapping a TA-Lib batch computation.
Implementations call the appropriate TA-Lib Core method and return the last
computed value from the output array.
-
Method Summary
Modifier and TypeMethodDescriptiondoublecompute(double[] prices, int endIdx, com.tictactec.ta.lib.MInteger outBeg, com.tictactec.ta.lib.MInteger outNbElement, double[] outReal) Computes the indicator over the given price buffer.
-
Method Details
-
compute
double compute(double[] prices, int endIdx, com.tictactec.ta.lib.MInteger outBeg, com.tictactec.ta.lib.MInteger outNbElement, double[] outReal) Computes the indicator over the given price buffer.- Parameters:
prices- the accumulated price dataendIdx- the last valid index in the prices arrayoutBeg- output: index of the first valid output elementoutNbElement- output: number of valid output elementsoutReal- output array for results- Returns:
- the last computed indicator value
-