Exemplo n.º 1
0
    public void filter(float[] observation)
    {
        IntPtr intPtrFArray = Marshal.AllocHGlobal(observation.Length * sizeof(float));

        Marshal.Copy(observation, 0, intPtrFArray, observation.Length);

        XmmInterface.filter(intPtrFArray, observation.Length);

        Marshal.FreeHGlobal(intPtrFArray);
    }
Exemplo n.º 2
0
    public void Filter(float[] observation)
    {
        XmmInterface.setCurrentModelInstance(thisIndex);

        IntPtr intPtrFArray = Marshal.AllocHGlobal(observation.Length * sizeof(float));

        Marshal.Copy(observation, 0, intPtrFArray, observation.Length);

        XmmInterface.filter(intPtrFArray, observation.Length);

        Marshal.FreeHGlobal(intPtrFArray);
    }