Ejemplo n.º 1
0
    public DotFeatures get_last_feature_obj()
    {
        IntPtr      cPtr = modshogunPINVOKE.CombinedDotFeatures_get_last_feature_obj(swigCPtr);
        DotFeatures ret  = (cPtr == IntPtr.Zero) ? null : new DotFeatures(cPtr, false);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 2
0
    public DotFeatures get_next_feature_obj(ListElement current)
    {
        IntPtr      cPtr = modshogunPINVOKE.CombinedDotFeatures_get_next_feature_obj__SWIG_1(swigCPtr, ListElement.getCPtr(current));
        DotFeatures ret  = (cPtr == IntPtr.Zero) ? null : new DotFeatures(cPtr, false);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 3
0
 public bool append_feature_obj(DotFeatures obj) {
   bool ret = modshogunPINVOKE.CombinedDotFeatures_append_feature_obj(swigCPtr, DotFeatures.getCPtr(obj));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Ejemplo n.º 4
0
 public virtual double dot(int vec_idx1, DotFeatures df, int vec_idx2) {
   double ret = modshogunPINVOKE.DotFeatures_dot(swigCPtr, vec_idx1, DotFeatures.getCPtr(df), vec_idx2);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Ejemplo n.º 5
0
 public WaveletKernel(DotFeatures l, DotFeatures r, int size, double Wdilation, double Wtranslation) : this(modshogunPINVOKE.new_WaveletKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), size, Wdilation, Wtranslation), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 6
0
 public SubGradientSVM(double C, DotFeatures traindat, Labels trainlab) : this(modshogunPINVOKE.new_SubGradientSVM__SWIG_1(C, DotFeatures.getCPtr(traindat), Labels.getCPtr(trainlab)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 7
0
 public SplineKernel(DotFeatures l, DotFeatures r) : this(modshogunPINVOKE.new_SplineKernel__SWIG_1(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 8
0
 public LinearKernel(DotFeatures l, DotFeatures r) : this(modshogunPINVOKE.new_LinearKernel__SWIG_1(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 9
0
 public PolyKernel(DotFeatures l, DotFeatures r, int d, bool inhom) : this(modshogunPINVOKE.new_PolyKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), d, inhom), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 10
0
 public PolyKernel(DotFeatures l, DotFeatures r, int d, bool inhom) : this(modshogunPINVOKE.new_PolyKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), d, inhom), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 11
0
 public GaussianKernel(DotFeatures l, DotFeatures r, double width) : this(modshogunPINVOKE.new_GaussianKernel__SWIG_3(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), width), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 12
0
 public virtual void set_features(DotFeatures feat) {
   modshogunPINVOKE.LinearMachine_set_features(swigCPtr, DotFeatures.getCPtr(feat));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 13
0
 public GaussianKernel(DotFeatures l, DotFeatures r, double width) : this(modshogunPINVOKE.new_GaussianKernel__SWIG_3(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), width), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 14
0
 public SVMOcas(double C, DotFeatures traindat, Labels trainlab) : this(modshogunPINVOKE.new_SVMOcas__SWIG_2(C, DotFeatures.getCPtr(traindat), Labels.getCPtr(trainlab)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 15
0
 public virtual void set_features(DotFeatures features) {
   modshogunPINVOKE.GaussianNaiveBayes_set_features(swigCPtr, DotFeatures.getCPtr(features));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 16
0
 public WaveletKernel(DotFeatures l, DotFeatures r, int size, double Wdilation, double Wtranslation) : this(modshogunPINVOKE.new_WaveletKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), size, Wdilation, Wtranslation), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 17
0
 public SigmoidKernel(DotFeatures l, DotFeatures r, int size, double gamma, double coef0) : this(modshogunPINVOKE.new_SigmoidKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), size, gamma, coef0), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 18
0
 public AveragedPerceptron(DotFeatures traindat, Labels trainlab) : this(modshogunPINVOKE.new_AveragedPerceptron__SWIG_1(DotFeatures.getCPtr(traindat), Labels.getCPtr(trainlab)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 19
0
 public ExponentialKernel(DotFeatures l, DotFeatures r, double width, Distance distance, int size) : this(modshogunPINVOKE.new_ExponentialKernel__SWIG_1(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), width, Distance.getCPtr(distance), size), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 20
0
 public Perceptron(DotFeatures traindat, Labels trainlab) : this(modshogunPINVOKE.new_Perceptron__SWIG_1(DotFeatures.getCPtr(traindat), Labels.getCPtr(trainlab)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 21
0
 public ExponentialKernel(DotFeatures l, DotFeatures r, double width, Distance distance, int size) : this(modshogunPINVOKE.new_ExponentialKernel__SWIG_1(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), width, Distance.getCPtr(distance), size), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 22
0
 public void obtain_from_dot(DotFeatures df) {
   modshogunPINVOKE.IntFeatures_obtain_from_dot(swigCPtr, DotFeatures.getCPtr(df));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 23
0
 internal static HandleRef getCPtr(DotFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 24
0
 public SigmoidKernel(DotFeatures l, DotFeatures r, int size, double gamma, double coef0) : this(modshogunPINVOKE.new_SigmoidKernel__SWIG_2(DotFeatures.getCPtr(l), DotFeatures.getCPtr(r), size, gamma, coef0), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 25
0
 internal static HandleRef getCPtr(DotFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }