public virtual unsafe double GetNormalized(global::Java.Lang.Object p0)
        {
            if (id_getNormalized_Ljava_lang_Object_ == IntPtr.Zero)
            {
                id_getNormalized_Ljava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "getNormalized", "(Ljava/lang/Object;)D");
            }
            IntPtr native_p0 = JNIEnv.ToLocalJniHandle(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);

                double __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getNormalized_Ljava_lang_Object_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getNormalized", "(Ljava/lang/Object;)D"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Exemple #2
0
        public override unsafe double GetOutput(double[] p0)
        {
            if (id_getOutput_arrayD == IntPtr.Zero)
            {
                id_getOutput_arrayD = JNIEnv.GetMethodID(class_ref, "getOutput", "([D)D");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);

                double __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getOutput_arrayD, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getOutput", "([D)D"), __args);
                }
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
        public override unsafe double Value(string p0)
        {
            if (id_value_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_value_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "value", "(Ljava/lang/String;)D");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);

                double __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_value_Ljava_lang_String_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "value", "(Ljava/lang/String;)D"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public virtual unsafe double GetOutput(global::System.Collections.Generic.IList <global::Org.Neuroph.Core.Connection> p0)
        {
            if (id_getOutput_Ljava_util_List_ == IntPtr.Zero)
            {
                id_getOutput_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "getOutput", "(Ljava/util/List;)D");
            }
            IntPtr native_p0 = global::Android.Runtime.JavaList <global::Org.Neuroph.Core.Connection> .ToLocalJniHandle(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);

                double __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getOutput_Ljava_util_List_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getOutput", "(Ljava/util/List;)D"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public override unsafe double UpdateWeight(double[] p0, double[] p1, int p2)
        {
            if (id_updateWeight_arrayDarrayDI == IntPtr.Zero)
            {
                id_updateWeight_arrayDarrayDI = JNIEnv.GetMethodID(class_ref, "updateWeight", "([D[DI)D");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);
            IntPtr native_p1 = JNIEnv.NewArray(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                double __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_updateWeight_arrayDarrayDI, __args);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }
Exemple #6
0
 public double ReadDouble()
 {
     if (id_readDouble == IntPtr.Zero)
     {
         id_readDouble = JNIEnv.GetMethodID(class_ref, "readDouble", "()D");
     }
     return(JNIEnv.CallDoubleMethod(Handle, id_readDouble));
 }
Exemple #7
0
 public unsafe double Min()
 {
     if (id_min == IntPtr.Zero)
     {
         id_min = JNIEnv.GetMethodID(class_ref, "min", "()D");
     }
     return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_min));
 }
Exemple #8
0
 public unsafe double ConstantValue()
 {
     if (id_constantValue == IntPtr.Zero)
     {
         id_constantValue = JNIEnv.GetMethodID(class_ref, "constantValue", "()D");
     }
     return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_constantValue));
 }
        public unsafe double DerivativeFunction(double p0)
        {
            if (id_derivativeFunction_D == IntPtr.Zero)
            {
                id_derivativeFunction_D = JNIEnv.GetMethodID(class_ref, "derivativeFunction", "(D)D");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_derivativeFunction_D, __args));
        }
Exemple #10
0
 public override unsafe double Price()
 {
     if (id_price == IntPtr.Zero)
     {
         id_price = JNIEnv.GetMethodID(class_ref, "price", "()D");
     }
     try {
         return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_price));
     } finally {
     }
 }
Exemple #11
0
 public override unsafe double Shipping()
 {
     if (id_shipping == IntPtr.Zero)
     {
         id_shipping = JNIEnv.GetMethodID(class_ref, "shipping", "()D");
     }
     try {
         return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_shipping));
     } finally {
     }
 }
Exemple #12
0
 public override unsafe double Discount()
 {
     if (id_discount == IntPtr.Zero)
     {
         id_discount = JNIEnv.GetMethodID(class_ref, "discount", "()D");
     }
     try {
         return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_discount));
     } finally {
     }
 }
        public unsafe double GetCenter(int p0)
        {
            if (id_getCenter_I == IntPtr.Zero)
            {
                id_getCenter_I = JNIEnv.GetMethodID(class_ref, "getCenter", "(I)D");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getCenter_I, __args));
        }
Exemple #14
0
 public override unsafe double GetOutput(double p0)
 {
     if (id_getOutput_D == IntPtr.Zero)
     {
         id_getOutput_D = JNIEnv.GetMethodID(class_ref, "getOutput", "(D)D");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getOutput_D, __args));
     } finally {
     }
 }
        public virtual double GetZ()
        {
            if (id_getZ == IntPtr.Zero)
            {
                id_getZ = JNIEnv.GetMethodID(class_ref, "getZ", "()D");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallDoubleMethod(Handle, id_getZ));
            }
            else
            {
                return(JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, id_getZ));
            }
        }
        public virtual double Magnitude()
        {
            if (id_magnitude == IntPtr.Zero)
            {
                id_magnitude = JNIEnv.GetMethodID(class_ref, "magnitude", "()D");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallDoubleMethod(Handle, id_magnitude));
            }
            else
            {
                return(JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, id_magnitude));
            }
        }
        public virtual double GetMinimumValue(int p0)
        {
            if (id_getMinimumValue_I == IntPtr.Zero)
            {
                id_getMinimumValue_I = JNIEnv.GetMethodID(class_ref, "getMinimumValue", "(I)D");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallDoubleMethod(Handle, id_getMinimumValue_I, new JValue(p0)));
            }
            else
            {
                return(JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getMinimumValue", "(I)D"), new JValue(p0)));
            }
        }
Exemple #18
0
        public override unsafe double NormalizedValue(string p0)
        {
            if (id_normalizedValue_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_normalizedValue_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "normalizedValue", "(Ljava/lang/String;)D");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                double __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_normalizedValue_Ljava_lang_String_, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
 public virtual double Z()
 {
     if (id_z == IntPtr.Zero)
     {
         id_z = JNIEnv.GetMethodID(class_ref, "z", "()D");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallDoubleMethod(Handle, id_z));
         }
         else
         {
             return(JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "z", "()D")));
         }
     } finally {
     }
 }
Exemple #20
0
 protected virtual unsafe double NextRandomWeight()
 {
     if (id_nextRandomWeight == IntPtr.Zero)
     {
         id_nextRandomWeight = JNIEnv.GetMethodID(class_ref, "nextRandomWeight", "()D");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_nextRandomWeight));
         }
         else
         {
             return(JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "nextRandomWeight", "()D")));
         }
     } finally {
     }
 }
Exemple #21
0
 public virtual unsafe double ReadDoubleLE()
 {
     if (id_readDoubleLE == IntPtr.Zero)
     {
         id_readDoubleLE = JNIEnv.GetMethodID(class_ref, "readDoubleLE", "()D");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_readDoubleLE));
         }
         else
         {
             return(JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "readDoubleLE", "()D")));
         }
     } finally {
     }
 }
        public virtual double GetAngle(global::Org.Achartengine.Model.Point p0)
        {
            if (id_getAngle_Lorg_achartengine_model_Point_ == IntPtr.Zero)
            {
                id_getAngle_Lorg_achartengine_model_Point_ = JNIEnv.GetMethodID(class_ref, "getAngle", "(Lorg/achartengine/model/Point;)D");
            }

            double __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallDoubleMethod(Handle, id_getAngle_Lorg_achartengine_model_Point_, new JValue(p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getAngle", "(Lorg/achartengine/model/Point;)D"), new JValue(p0));
            }
            return(__ret);
        }
        public virtual double DistanceInRadiansTo(global::Com.Parse.ParseGeoPoint p0)
        {
            if (id_distanceInRadiansTo_Lcom_parse_ParseGeoPoint_ == IntPtr.Zero)
            {
                id_distanceInRadiansTo_Lcom_parse_ParseGeoPoint_ = JNIEnv.GetMethodID(class_ref, "distanceInRadiansTo", "(Lcom/parse/ParseGeoPoint;)D");
            }

            double __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallDoubleMethod(Handle, id_distanceInRadiansTo_Lcom_parse_ParseGeoPoint_, new JValue(p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "distanceInRadiansTo", "(Lcom/parse/ParseGeoPoint;)D"), new JValue(p0));
            }
            return(__ret);
        }
Exemple #24
0
        protected virtual double DistanceLLSquared(global::Org.Osmdroid.Util.GeoPoint p0, global::Org.Osmdroid.Util.GeoPoint p1)
        {
            if (id_distanceLLSquared_Lorg_osmdroid_util_GeoPoint_Lorg_osmdroid_util_GeoPoint_ == IntPtr.Zero)
            {
                id_distanceLLSquared_Lorg_osmdroid_util_GeoPoint_Lorg_osmdroid_util_GeoPoint_ = JNIEnv.GetMethodID(class_ref, "distanceLLSquared", "(Lorg/osmdroid/util/GeoPoint;Lorg/osmdroid/util/GeoPoint;)D");
            }

            double __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallDoubleMethod(Handle, id_distanceLLSquared_Lorg_osmdroid_util_GeoPoint_Lorg_osmdroid_util_GeoPoint_, new JValue(p0), new JValue(p1));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "distanceLLSquared", "(Lorg/osmdroid/util/GeoPoint;Lorg/osmdroid/util/GeoPoint;)D"), new JValue(p0), new JValue(p1));
            }
            return(__ret);
        }
        public unsafe double Calculate(double[] p0)
        {
            if (id_calculate_arrayD == IntPtr.Zero)
            {
                id_calculate_arrayD = JNIEnv.GetMethodID(class_ref, "calculate", "([D)D");
            }
            IntPtr  native_p0 = JNIEnv.NewArray(p0);
            JValue *__args    = stackalloc JValue [1];

            __args [0] = new JValue(native_p0);
            double __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_calculate_arrayD, __args);

            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
            return(__ret);
        }
 public virtual double Dot(global::Com.Thalmic.Myo.Vector3 p0)
 {
     if (id_dot_Lcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_dot_Lcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "dot", "(Lcom/thalmic/myo/Vector3;)D");
     }
     try {
         double __ret;
         if (GetType() == ThresholdType)
         {
             __ret = JNIEnv.CallDoubleMethod(Handle, id_dot_Lcom_thalmic_myo_Vector3_, new JValue(p0));
         }
         else
         {
             __ret = JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "dot", "(Lcom/thalmic/myo/Vector3;)D"), new JValue(p0));
         }
         return(__ret);
     } finally {
     }
 }
        public override unsafe double GetOutput(double p0)
        {
            if (id_getOutput_D == IntPtr.Zero)
            {
                id_getOutput_D = JNIEnv.GetMethodID(class_ref, "getOutput", "(D)D");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getOutput_D, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getOutput", "(D)D"), __args));
                }
            } finally {
            }
        }
Exemple #28
0
        public override unsafe double GetOutput(global::Org.Neuroph.Core.Connection[] p0)
        {
            if (id_getOutput_arrayLorg_neuroph_core_Connection_ == IntPtr.Zero)
            {
                id_getOutput_arrayLorg_neuroph_core_Connection_ = JNIEnv.GetMethodID(class_ref, "getOutput", "([Lorg/neuroph/core/Connection;)D");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                double __ret = JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getOutput_arrayLorg_neuroph_core_Connection_, __args);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
        public virtual unsafe double GetDouble(int key)
        {
            if (id_getDouble_I == IntPtr.Zero)
            {
                id_getDouble_I = JNIEnv.GetMethodID(class_ref, "getDouble", "(I)D");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(key);

                if (((object)this).GetType() == ThresholdType)
                {
                    return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_getDouble_I, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getDouble", "(I)D"), __args));
                }
            } finally {
            }
        }
Exemple #30
0
        public virtual unsafe double SqDist(float p0, float p1)
        {
            if (id_sqDist_FF == IntPtr.Zero)
            {
                id_sqDist_FF = JNIEnv.GetMethodID(class_ref, "sqDist", "(FF)D");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    return(JNIEnv.CallDoubleMethod(((global::Java.Lang.Object) this).Handle, id_sqDist_FF, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualDoubleMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "sqDist", "(FF)D"), __args));
                }
            } finally {
            }
        }