public unsafe MatrixMlpLayer(global::Org.Neuroph.Core.Layer p0, global::Org.Neuroph.Contrib.Matrixmlp.IMatrixLayer p1, global::Org.Neuroph.Core.Transfer.TransferFunction p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (GetType() != typeof(MatrixMlpLayer)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/Layer;Lorg/neuroph/contrib/matrixmlp/MatrixLayer;Lorg/neuroph/core/transfer/TransferFunction;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/Layer;Lorg/neuroph/contrib/matrixmlp/MatrixLayer;Lorg/neuroph/core/transfer/TransferFunction;)V", __args); return; } if (id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/Layer;Lorg/neuroph/contrib/matrixmlp/MatrixLayer;Lorg/neuroph/core/transfer/TransferFunction;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_, __args); } finally { } }
public unsafe NeuralNetworkEvent(global::Org.Neuroph.Core.Layer p0, global::Org.Neuroph.Core.Events.NeuralNetworkEventType 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(NeuralNetworkEvent)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/events/NeuralNetworkEventType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/events/NeuralNetworkEventType;)V", __args); return; } if (id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/events/NeuralNetworkEventType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_, __args); } finally { } }
static void n_SetLabel_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); __this.Label = p0; }
static int n_IndexOf_Lorg_neuroph_core_Neuron_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Core.Neuron p0 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Neuron> (native_p0, JniHandleOwnership.DoNotTransfer); int __ret = __this.IndexOf(p0); return(__ret); }
public static unsafe void FullConnect(global::Org.Neuroph.Core.Layer p0) { if (id_fullConnect_Lorg_neuroph_core_Layer_ == IntPtr.Zero) { id_fullConnect_Lorg_neuroph_core_Layer_ = JNIEnv.GetStaticMethodID(class_ref, "fullConnect", "(Lorg/neuroph/core/Layer;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallStaticVoidMethod(class_ref, id_fullConnect_Lorg_neuroph_core_Layer_, __args); } finally { } }
public static unsafe global::Org.Neuroph.Core.Layer CreateLayer(global::Java.Util.Vector p0) { if (id_createLayer_Ljava_util_Vector_ == IntPtr.Zero) { id_createLayer_Ljava_util_Vector_ = JNIEnv.GetStaticMethodID(class_ref, "createLayer", "(Ljava/util/Vector;)Lorg/neuroph/core/Layer;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Org.Neuroph.Core.Layer __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (JNIEnv.CallStaticObjectMethod(class_ref, id_createLayer_Ljava_util_Vector_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } 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 void ForwardConnect(global::Org.Neuroph.Core.Layer p0, global::Org.Neuroph.Core.Layer p1, double p2) { if (id_forwardConnect_Lorg_neuroph_core_Layer_Lorg_neuroph_core_Layer_D == IntPtr.Zero) { id_forwardConnect_Lorg_neuroph_core_Layer_Lorg_neuroph_core_Layer_D = JNIEnv.GetStaticMethodID(class_ref, "forwardConnect", "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/Layer;D)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); JNIEnv.CallStaticVoidMethod(class_ref, id_forwardConnect_Lorg_neuroph_core_Layer_Lorg_neuroph_core_Layer_D, __args); } finally { } }
public static unsafe global::Org.Neuroph.Core.Layer CreateLayer(global::System.Collections.Generic.IList <global::Org.Neuroph.Util.NeuronProperties> p0) { if (id_createLayer_Ljava_util_List_ == IntPtr.Zero) { id_createLayer_Ljava_util_List_ = JNIEnv.GetStaticMethodID(class_ref, "createLayer", "(Ljava/util/List;)Lorg/neuroph/core/Layer;"); } IntPtr native_p0 = global::Android.Runtime.JavaList <global::Org.Neuroph.Util.NeuronProperties> .ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Org.Neuroph.Core.Layer __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (JNIEnv.CallStaticObjectMethod(class_ref, id_createLayer_Ljava_util_List_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public virtual unsafe void Randomize(global::Org.Neuroph.Core.Layer p0) { if (id_randomize_Lorg_neuroph_core_Layer_ == IntPtr.Zero) { id_randomize_Lorg_neuroph_core_Layer_ = JNIEnv.GetMethodID(class_ref, "randomize", "(Lorg/neuroph/core/Layer;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_randomize_Lorg_neuroph_core_Layer_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "randomize", "(Lorg/neuroph/core/Layer;)V"), __args); } } finally { } }
static IntPtr n_GetNeuronAt_I(IntPtr jnienv, IntPtr native__this, int p0) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.GetNeuronAt(p0))); }
static bool n_IsEmpty(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.IsEmpty); }
static void n_Randomize_Lorg_neuroph_core_Layer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Util.Random.WeightsRandomizer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Util.Random.WeightsRandomizer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Core.Layer p0 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Randomize(p0); }
static void n_SetNeuron_ILorg_neuroph_core_Neuron_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Core.Neuron p1 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Neuron> (native_p1, JniHandleOwnership.DoNotTransfer); __this.SetNeuron(p0, p1); }
static void n_Reset(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Reset(); }
static void n_RemoveNeuron_Lorg_neuroph_core_Neuron_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Core.Neuron p0 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Neuron> (native_p0, JniHandleOwnership.DoNotTransfer); __this.RemoveNeuron(p0); }
static void n_RandomizeWeights_Ljava_util_Random_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.Random p0 = global::Java.Lang.Object.GetObject <global::Java.Util.Random> (native_p0, JniHandleOwnership.DoNotTransfer); __this.RandomizeWeights(p0); }
static void n_RandomizeWeights_DD(IntPtr jnienv, IntPtr native__this, double p0, double p1) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.RandomizeWeights(p0, p1); }
static IntPtr n_GetNeurons(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(global::Android.Runtime.JavaList <global::Org.Neuroph.Core.Neuron> .ToLocalJniHandle(__this.Neurons)); }
static void n_SetParentNetwork_Lorg_neuroph_core_NeuralNetwork_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Core.NeuralNetwork p0 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.NeuralNetwork> (native_p0, JniHandleOwnership.DoNotTransfer); __this.ParentNetwork = p0; }
static int n_GetNeuronsCount(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.NeuronsCount); }
static IntPtr n_GetLabel(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Core.Layer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Layer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.NewString(__this.Label)); }
public static unsafe void CreateConnection(global::Org.Neuroph.Core.Neuron p0, global::Org.Neuroph.Core.Layer p1) { if (id_createConnection_Lorg_neuroph_core_Neuron_Lorg_neuroph_core_Layer_ == IntPtr.Zero) { id_createConnection_Lorg_neuroph_core_Neuron_Lorg_neuroph_core_Layer_ = JNIEnv.GetStaticMethodID(class_ref, "createConnection", "(Lorg/neuroph/core/Neuron;Lorg/neuroph/core/Layer;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallStaticVoidMethod(class_ref, id_createConnection_Lorg_neuroph_core_Neuron_Lorg_neuroph_core_Layer_, __args); } finally { } }
public static unsafe void FullConnect(global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p0, global::Org.Neuroph.Core.Layer p1, bool p2) { if (id_fullConnect_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_core_Layer_Z == IntPtr.Zero) { id_fullConnect_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_core_Layer_Z = JNIEnv.GetStaticMethodID(class_ref, "fullConnect", "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/core/Layer;Z)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); JNIEnv.CallStaticVoidMethod(class_ref, id_fullConnect_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_core_Layer_Z, __args); } finally { } }