Esempio n. 1
0
 public SparsePolyFeatures(SparseRealFeatures feat, int degree, bool normalize, int hash_bits) : this(modshogunPINVOKE.new_SparsePolyFeatures__SWIG_1(SparseRealFeatures.getCPtr(feat), degree, normalize, hash_bits), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public SparseEuclidianDistance(SparseRealFeatures l, SparseRealFeatures r) : this(modshogunPINVOKE.new_SparseEuclidianDistance__SWIG_1(SparseRealFeatures.getCPtr(l), SparseRealFeatures.getCPtr(r)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 public SparseRealFeatures(SparseRealFeatures orig) : this(modshogunPINVOKE.new_SparseRealFeatures__SWIG_6(SparseRealFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 4
0
 public void set_sparse_features(SparseRealFeatures seq_sparse1, SparseRealFeatures seq_sparse2)
 {
     modshogunPINVOKE.DynProg_set_sparse_features(swigCPtr, SparseRealFeatures.getCPtr(seq_sparse1), SparseRealFeatures.getCPtr(seq_sparse2));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 5
0
    public SparseRealFeatures get_transposed()
    {
        IntPtr             cPtr = modshogunPINVOKE.SparseRealFeatures_get_transposed(swigCPtr);
        SparseRealFeatures ret  = (cPtr == IntPtr.Zero) ? null : new SparseRealFeatures(cPtr, true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public SparseEuclidianDistance(SparseRealFeatures l, SparseRealFeatures r) : this(modshogunPINVOKE.new_SparseEuclidianDistance__SWIG_1(SparseRealFeatures.getCPtr(l), SparseRealFeatures.getCPtr(r)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 7
0
 public SparsePolyFeatures(SparseRealFeatures feat, int degree, bool normalize, int hash_bits) : this(modshogunPINVOKE.new_SparsePolyFeatures__SWIG_1(SparseRealFeatures.getCPtr(feat), degree, normalize, hash_bits), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 8
0
 internal static HandleRef getCPtr(SparseRealFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 9
0
 public void set_sparse_features(SparseRealFeatures seq_sparse1, SparseRealFeatures seq_sparse2) {
   modshogunPINVOKE.DynProg_set_sparse_features(swigCPtr, SparseRealFeatures.getCPtr(seq_sparse1), SparseRealFeatures.getCPtr(seq_sparse2));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 10
0
 public SparseRealFeatures(SparseRealFeatures orig) : this(modshogunPINVOKE.new_SparseRealFeatures__SWIG_6(SparseRealFeatures.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 11
0
 internal static HandleRef getCPtr(SparseRealFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }