Beispiel #1
0
        static void n_SetLabel_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Neuroph.Core.Learning.TrainingElement __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Learning.TrainingElement> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.Label = p0;
        }
Beispiel #2
0
 static void n_SetInputArray_arrayD(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Neuroph.Core.Learning.TrainingElement __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Learning.TrainingElement> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     double[] p0 = (double[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(double));
     __this.SetInputArray(p0);
     if (p0 != null)
     {
         JNIEnv.CopyArray(p0, native_p0);
     }
 }
        protected virtual unsafe void LearnPattern(global::Org.Neuroph.Core.Learning.TrainingElement p0)
        {
            if (id_learnPattern_Lorg_neuroph_core_learning_TrainingElement_ == IntPtr.Zero)
            {
                id_learnPattern_Lorg_neuroph_core_learning_TrainingElement_ = JNIEnv.GetMethodID(class_ref, "learnPattern", "(Lorg/neuroph/core/learning/TrainingElement;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_learnPattern_Lorg_neuroph_core_learning_TrainingElement_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "learnPattern", "(Lorg/neuroph/core/learning/TrainingElement;)V"), __args);
                }
            } finally {
            }
        }
 static void n_LearnPattern_Lorg_neuroph_core_learning_TrainingElement_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Neuroph.Core.Learning.UnsupervisedLearning __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Learning.UnsupervisedLearning> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Neuroph.Core.Learning.TrainingElement      p0     = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Learning.TrainingElement> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.LearnPattern(p0);
 }
Beispiel #5
0
 static IntPtr n_GetInputArray(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Neuroph.Core.Learning.TrainingElement __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Learning.TrainingElement> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewArray(__this.GetInputArray()));
 }
Beispiel #6
0
 static bool n_IsSupervised(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Neuroph.Core.Learning.TrainingElement __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Learning.TrainingElement> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsSupervised);
 }