public static CorrelResult Correl(int startIdx, int endIdx, double[] real0, double[] real1, int timePeriod) { int outBegIdx = default; int outNBElement = default; double[] outReal = new double[endIdx - startIdx + 1]; RetCode retCode = TACore.Correl( startIdx, endIdx, real0, real1, timePeriod, ref outBegIdx, ref outNBElement, ref outReal); return(new(retCode, outBegIdx, outNBElement, outReal)); }