public float[] getRegression() { int nModels = XmmInterface.getNbOfModels(); float[] outputValues = new float[nModels]; IntPtr intPtrOutputValues = XmmInterface.getLikelihoods(); Marshal.Copy(intPtrOutputValues, outputValues, 0, nModels); return(outputValues); }
public float[] getLikelihoods() { int nModels = XmmInterface.getNbOfModels(); float[] likelihoods = new float[nModels]; IntPtr intPtrLikelihoods = XmmInterface.getLikelihoods(); Marshal.Copy(intPtrLikelihoods, likelihoods, 0, nModels); return(likelihoods); }
public float[] GetRegression() { XmmInterface.setCurrentModelInstance(thisIndex); int nModels = XmmInterface.getNbOfModels(); float[] outputValues = new float[nModels]; IntPtr intPtrOutputValues = XmmInterface.getLikelihoods(); Marshal.Copy(intPtrOutputValues, outputValues, 0, nModels); return(outputValues); }
public float[] GetLikelihoods() { XmmInterface.setCurrentModelInstance(thisIndex); int nModels = XmmInterface.getNbOfModels(); float[] likelihoods = new float[nModels]; IntPtr intPtrLikelihoods = XmmInterface.getLikelihoods(); Marshal.Copy(intPtrLikelihoods, likelihoods, 0, nModels); return(likelihoods); }