Пример #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);
    }
Пример #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);
    }
Пример #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;
 }
Пример #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;
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
 }
Пример #23
0
 internal static HandleRef getCPtr(DotFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #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();
     }
 }
Пример #25
0
 internal static HandleRef getCPtr(DotFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }