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);
    }
示例#4
0
    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);
    }
示例#5
0
    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);
    }
示例#6
0
    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);
    }
示例#7
0
    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);
    }
示例#8
0
 public int GetNbOfModels()
 {
     XmmInterface.setCurrentModelInstance(thisIndex);
     return(XmmInterface.getNbOfModels());
 }
 public int getNbOfModels()
 {
     return(XmmInterface.getNbOfModels());
 }