示例#1
0
    public virtual bool Align_char_features(StringCharFeatures cf, StringCharFeatures Ref, double gapCost)
    {
        bool ret = modshogunPINVOKE.WordFeatures_Align_char_features(swigCPtr, StringCharFeatures.getCPtr(cf), StringCharFeatures.getCPtr(Ref), gapCost);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#2
0
    public bool append_features(StringCharFeatures sf)
    {
        bool ret = modshogunPINVOKE.StringCharFeatures_append_features(swigCPtr, StringCharFeatures.getCPtr(sf));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#3
0
    public bool obtain_from_char(StringCharFeatures sf, int start, int p_order, int gap, bool rev)
    {
        bool ret = modshogunPINVOKE.StringWordFeatures_obtain_from_char(swigCPtr, StringCharFeatures.getCPtr(sf), start, p_order, gap, rev);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#4
0
 public WeightedDegreeStringKernel(StringCharFeatures l, StringCharFeatures r, int degree) : this(modshogunPINVOKE.new_WeightedDegreeStringKernel__SWIG_4(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), degree), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public SparseSpatialSampleStringKernel(StringCharFeatures l, StringCharFeatures r) : this(modshogunPINVOKE.new_SparseSpatialSampleStringKernel__SWIG_1(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public SimpleLocalityImprovedStringKernel(StringCharFeatures l, StringCharFeatures r, int length, int inner_degree, int outer_degree) : this(modshogunPINVOKE.new_SimpleLocalityImprovedStringKernel__SWIG_2(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), length, inner_degree, outer_degree), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#7
0
 public GaussianMatchStringKernel(StringCharFeatures l, StringCharFeatures r, double width) : this(modshogunPINVOKE.new_GaussianMatchStringKernel__SWIG_2(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), width), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#8
0
 public SpectrumMismatchRBFKernel(StringCharFeatures l, StringCharFeatures r, int size, SWIGTYPE_p_double AA_matrix_, int nr_, int nc_, int degree, int max_mismatch, double width) : this(modshogunPINVOKE.new_SpectrumMismatchRBFKernel__SWIG_2(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), size, SWIGTYPE_p_double.getCPtr(AA_matrix_), nr_, nc_, degree, max_mismatch, width), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public DistantSegmentsKernel(StringCharFeatures l, StringCharFeatures r, int size, int delta, int theta) : this(modshogunPINVOKE.new_DistantSegmentsKernel__SWIG_2(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), size, delta, theta), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#10
0
 public SNPStringKernel(StringCharFeatures l, StringCharFeatures r, int degree, int win_len, bool inhomogene) : this(modshogunPINVOKE.new_SNPStringKernel__SWIG_2(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), degree, win_len, inhomogene), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public LocalAlignmentStringKernel(StringCharFeatures l, StringCharFeatures r) : this(modshogunPINVOKE.new_LocalAlignmentStringKernel__SWIG_4(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public LocalAlignmentStringKernel(StringCharFeatures l, StringCharFeatures r, double opening, double extension) : this(modshogunPINVOKE.new_LocalAlignmentStringKernel__SWIG_2(StringCharFeatures.getCPtr(l), StringCharFeatures.getCPtr(r), opening, extension), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public RegulatoryModulesStringKernel(StringCharFeatures lstr, StringCharFeatures rstr, WordFeatures lpos, WordFeatures rpos, double width, int degree, int shift, int window) : this(modshogunPINVOKE.new_RegulatoryModulesStringKernel__SWIG_3(StringCharFeatures.getCPtr(lstr), StringCharFeatures.getCPtr(rstr), WordFeatures.getCPtr(lpos), WordFeatures.getCPtr(rpos), width, degree, shift, window), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#14
0
 public StringCharFeatures(StringCharFeatures orig) : this(modshogunPINVOKE.new_StringCharFeatures__SWIG_5(StringCharFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }