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);
    }
Example #3
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);
    }
Example #4
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);
    }