コード例 #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
ファイル: DotFeatures.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: SubGradientSVM.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: LinearKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: PolyKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: PolyKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: GaussianKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: LinearMachine.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: GaussianKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: SVMOcas.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: WaveletKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: SigmoidKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: IntFeatures.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: DotFeatures.cs プロジェクト: Anshul-Bansal/gsoc
 internal static HandleRef getCPtr(DotFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #24
0
ファイル: SigmoidKernel.cs プロジェクト: Anshul-Bansal/gsoc
 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
ファイル: DotFeatures.cs プロジェクト: Anshul-Bansal/gsoc
 internal static HandleRef getCPtr(DotFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }