コード例 #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);
    }
コード例 #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);
    }