コード例 #1
0
    public float[] getRegression()
    {
        int nModels = XmmInterface.getNbOfModels();

        float[] outputValues       = new float[nModels];
        IntPtr  intPtrOutputValues = XmmInterface.getLikelihoods();

        Marshal.Copy(intPtrOutputValues, outputValues, 0, nModels);
        return(outputValues);
    }
コード例 #2
0
    public float[] getTimeProgressions()
    {
        int nModels = XmmInterface.getNbOfModels();

        float[] timeProgressions       = new float[nModels];
        IntPtr  intPtrTimeProgressions = XmmInterface.getTimeProgressions();

        Marshal.Copy(intPtrTimeProgressions, timeProgressions, 0, nModels);
        return(timeProgressions);
    }
コード例 #3
0
    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());
 }
コード例 #9
0
 public int getNbOfModels()
 {
     return(XmmInterface.getNbOfModels());
 }