public unsafe CompetitiveNeuron(global::Org.Neuroph.Core.Input.InputFunction p0, global::Org.Neuroph.Core.Transfer.TransferFunction p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() != typeof(CompetitiveNeuron)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/input/InputFunction;Lorg/neuroph/core/transfer/TransferFunction;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/input/InputFunction;Lorg/neuroph/core/transfer/TransferFunction;)V", __args); return; } if (id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/input/InputFunction;Lorg/neuroph/core/transfer/TransferFunction;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_, __args); } finally { } }
static double n_GetOutput_Ljava_util_List_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Input.InputFunction __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Input.InputFunction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); var p0 = global::Android.Runtime.JavaList <global::Org.Neuroph.Core.Connection> .FromJniHandle(native_p0, JniHandleOwnership.DoNotTransfer); double __ret = __this.GetOutput(p0); return(__ret); }
static double n_GetOutput_arrayLorg_neuroph_core_Connection_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Input.InputFunction __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Input.InputFunction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Core.Connection[] p0 = (global::Org.Neuroph.Core.Connection[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(global::Org.Neuroph.Core.Connection)); double __ret = __this.GetOutput(p0); if (p0 != null) { JNIEnv.CopyArray(p0, native_p0); } return(__ret); }
static IntPtr n_GetWeightsFunction(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Core.Input.InputFunction __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Input.InputFunction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.WeightsFunction)); }