public unsafe NeuronProperties(global::Org.Neuroph.Util.TransferFunctionType p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() != typeof(NeuronProperties)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/util/TransferFunctionType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/util/TransferFunctionType;)V", __args); return; } if (id_ctor_Lorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/util/TransferFunctionType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_util_TransferFunctionType_, __args); } finally { } }
public static unsafe global::Org.Neuroph.Core.Layer CreateLayer(int p0, global::Org.Neuroph.Util.TransferFunctionType p1) { if (id_createLayer_ILorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_createLayer_ILorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetStaticMethodID(class_ref, "createLayer", "(ILorg/neuroph/util/TransferFunctionType;)Lorg/neuroph/core/Layer;"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); global::Org.Neuroph.Core.Layer __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (JNIEnv.CallStaticObjectMethod(class_ref, id_createLayer_ILorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
public static unsafe global::Org.Neuroph.Util.TransferFunctionType ValueOf(string p0) { if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero) { id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lorg/neuroph/util/TransferFunctionType;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Org.Neuroph.Util.TransferFunctionType __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Util.TransferFunctionType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public unsafe MultiLayerPerceptron(global::Org.Neuroph.Util.TransferFunctionType p0, params int[] p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p1 = JNIEnv.NewArray(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); if (GetType() != typeof(MultiLayerPerceptron)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/util/TransferFunctionType;[I)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/util/TransferFunctionType;[I)V", __args); return; } if (id_ctor_Lorg_neuroph_util_TransferFunctionType_arrayI == IntPtr.Zero) { id_ctor_Lorg_neuroph_util_TransferFunctionType_arrayI = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/util/TransferFunctionType;[I)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_util_TransferFunctionType_arrayI, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_util_TransferFunctionType_arrayI, __args); } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } } }
public static unsafe global::Org.Neuroph.Core.NeuralNetwork CreateNewNeuralNetwork(string p0, global::Org.Neuroph.Imgrec.Image.Dimension p1, global::Org.Neuroph.Imgrec.ColorMode p2, global::System.Collections.Generic.IList <string> p3, global::System.Collections.Generic.IList <global::Java.Lang.Integer> p4, global::Org.Neuroph.Util.TransferFunctionType p5) { if (id_createNewNeuralNetwork_Ljava_lang_String_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_Ljava_util_List_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_createNewNeuralNetwork_Ljava_lang_String_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_Ljava_util_List_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetStaticMethodID(class_ref, "createNewNeuralNetwork", "(Ljava/lang/String;Lorg/neuroph/imgrec/image/Dimension;Lorg/neuroph/imgrec/ColorMode;Ljava/util/List;Ljava/util/List;Lorg/neuroph/util/TransferFunctionType;)Lorg/neuroph/core/NeuralNetwork;"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p3 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p3); IntPtr native_p4 = global::Android.Runtime.JavaList <global::Java.Lang.Integer> .ToLocalJniHandle(p4); try { JValue *__args = stackalloc JValue [6]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(native_p4); __args [5] = new JValue(p5); global::Org.Neuroph.Core.NeuralNetwork __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.NeuralNetwork> (JNIEnv.CallStaticObjectMethod(class_ref, id_createNewNeuralNetwork_Ljava_lang_String_Lorg_neuroph_imgrec_image_Dimension_Lorg_neuroph_imgrec_ColorMode_Ljava_util_List_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p3); JNIEnv.DeleteLocalRef(native_p4); } }
public unsafe MultiLayerPerceptron(global::System.Collections.Generic.IList <global::Java.Lang.Integer> p0, global::Org.Neuroph.Util.TransferFunctionType p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p0 = global::Android.Runtime.JavaList <global::Java.Lang.Integer> .ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); if (GetType() != typeof(MultiLayerPerceptron)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/util/List;Lorg/neuroph/util/TransferFunctionType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/util/List;Lorg/neuroph/util/TransferFunctionType;)V", __args); return; } if (id_ctor_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_ctor_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/util/List;Lorg/neuroph/util/TransferFunctionType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_util_List_Lorg_neuroph_util_TransferFunctionType_, __args); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public static unsafe global::Org.Neuroph.Nnet.UnsupervisedHebbianNetwork CreateUnsupervisedHebbian(int p0, int p1, global::Org.Neuroph.Util.TransferFunctionType p2) { if (id_createUnsupervisedHebbian_IILorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_createUnsupervisedHebbian_IILorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetStaticMethodID(class_ref, "createUnsupervisedHebbian", "(IILorg/neuroph/util/TransferFunctionType;)Lorg/neuroph/nnet/UnsupervisedHebbianNetwork;"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); global::Org.Neuroph.Nnet.UnsupervisedHebbianNetwork __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.UnsupervisedHebbianNetwork> (JNIEnv.CallStaticObjectMethod(class_ref, id_createUnsupervisedHebbian_IILorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
public static unsafe global::Org.Neuroph.Nnet.Perceptron CreatePerceptron(int p0, int p1, global::Org.Neuroph.Util.TransferFunctionType p2, global::Java.Lang.Class p3) { if (id_createPerceptron_IILorg_neuroph_util_TransferFunctionType_Ljava_lang_Class_ == IntPtr.Zero) { id_createPerceptron_IILorg_neuroph_util_TransferFunctionType_Ljava_lang_Class_ = JNIEnv.GetStaticMethodID(class_ref, "createPerceptron", "(IILorg/neuroph/util/TransferFunctionType;Ljava/lang/Class;)Lorg/neuroph/nnet/Perceptron;"); } try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); global::Org.Neuroph.Nnet.Perceptron __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Perceptron> (JNIEnv.CallStaticObjectMethod(class_ref, id_createPerceptron_IILorg_neuroph_util_TransferFunctionType_Ljava_lang_Class_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
public static unsafe global::Org.Neuroph.Nnet.MultiLayerPerceptron CreateMLPerceptron(string p0, global::Org.Neuroph.Util.TransferFunctionType p1, global::Java.Lang.Class p2, bool p3, bool p4) { if (id_createMLPerceptron_Ljava_lang_String_Lorg_neuroph_util_TransferFunctionType_Ljava_lang_Class_ZZ == IntPtr.Zero) { id_createMLPerceptron_Ljava_lang_String_Lorg_neuroph_util_TransferFunctionType_Ljava_lang_Class_ZZ = JNIEnv.GetStaticMethodID(class_ref, "createMLPerceptron", "(Ljava/lang/String;Lorg/neuroph/util/TransferFunctionType;Ljava/lang/Class;ZZ)Lorg/neuroph/nnet/MultiLayerPerceptron;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [5]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); __args [4] = new JValue(p4); global::Org.Neuroph.Nnet.MultiLayerPerceptron __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.MultiLayerPerceptron> (JNIEnv.CallStaticObjectMethod(class_ref, id_createMLPerceptron_Ljava_lang_String_Lorg_neuroph_util_TransferFunctionType_Ljava_lang_Class_ZZ, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }