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[] getTimeProgressions() { int nModels = XmmInterface.getNbOfModels(); float[] timeProgressions = new float[nModels]; IntPtr intPtrTimeProgressions = XmmInterface.getTimeProgressions(); Marshal.Copy(intPtrTimeProgressions, timeProgressions, 0, nModels); return(timeProgressions); }
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[] GetTimeProgressions() { XmmInterface.setCurrentModelInstance(thisIndex); int nModels = XmmInterface.getNbOfModels(); float[] timeProgressions = new float[nModels]; IntPtr intPtrTimeProgressions = XmmInterface.getTimeProgressions(); Marshal.Copy(intPtrTimeProgressions, timeProgressions, 0, nModels); return(timeProgressions); }
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); }
public string[] GetLabels() { XmmInterface.setCurrentModelInstance(thisIndex); int nLabels = XmmInterface.getNbOfModels(); string[] labels = new string[nLabels]; IntPtr stringArrayIntPtr = XmmInterface.getModelLabels(); for (int i = 0; i < nLabels; i++) { IntPtr currentIntPtr = Marshal.ReadIntPtr(stringArrayIntPtr, i * IntPtr.Size); labels[i] = Marshal.PtrToStringAnsi(currentIntPtr); } return(labels); }
public int GetNbOfModels() { XmmInterface.setCurrentModelInstance(thisIndex); return(XmmInterface.getNbOfModels()); }
public int getNbOfModels() { return(XmmInterface.getNbOfModels()); }