public unsafe MomentumWeightTrainingData(global::Org.Neuroph.Nnet.Learning.MomentumBackpropagation __self)
                : 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(__self);
                    if (GetType() != typeof(MomentumWeightTrainingData))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args);
                        return;
                    }

                    if (id_ctor_Lorg_neuroph_nnet_learning_MomentumBackpropagation_ == IntPtr.Zero)
                    {
                        id_ctor_Lorg_neuroph_nnet_learning_MomentumBackpropagation_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/nnet/learning/MomentumBackpropagation;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_nnet_learning_MomentumBackpropagation_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_nnet_learning_MomentumBackpropagation_, __args);
                } finally {
                }
            }
Example #2
0
 static void n_SetMomentum_D(IntPtr jnienv, IntPtr native__this, double p0)
 {
     global::Org.Neuroph.Nnet.Learning.MomentumBackpropagation __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Learning.MomentumBackpropagation> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Momentum = p0;
 }
Example #3
0
 static double n_GetMomentum(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Neuroph.Nnet.Learning.MomentumBackpropagation __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Learning.MomentumBackpropagation> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Momentum);
 }