コード例 #1
0
 public GaussianShortRealKernel(ShortRealFeatures l, ShortRealFeatures r, double width) : this(modshogunPINVOKE.new_GaussianShortRealKernel__SWIG_3(ShortRealFeatures.getCPtr(l), ShortRealFeatures.getCPtr(r), width), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public ShortRealFeatures(ShortRealFeatures orig) : this(modshogunPINVOKE.new_ShortRealFeatures__SWIG_2(ShortRealFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public StreamingShortRealFeatures(ShortRealFeatures simple_features) : this(modshogunPINVOKE.new_StreamingShortRealFeatures__SWIG_3(ShortRealFeatures.getCPtr(simple_features)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
    public bool obtain_from_simple(ShortRealFeatures sf)
    {
        bool ret = modshogunPINVOKE.SparseShortRealFeatures_obtain_from_simple(swigCPtr, ShortRealFeatures.getCPtr(sf));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
    public ShortRealFeatures get_transposed()
    {
        IntPtr            cPtr = modshogunPINVOKE.ShortRealFeatures_get_transposed(swigCPtr);
        ShortRealFeatures ret  = (cPtr == IntPtr.Zero) ? null : new ShortRealFeatures(cPtr, true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
 public GaussianShortRealKernel(ShortRealFeatures l, ShortRealFeatures r, double width) : this(modshogunPINVOKE.new_GaussianShortRealKernel__SWIG_3(ShortRealFeatures.getCPtr(l), ShortRealFeatures.getCPtr(r), width), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #7
0
 public StreamingShortRealFeatures(ShortRealFeatures simple_features) : this(modshogunPINVOKE.new_StreamingShortRealFeatures__SWIG_3(ShortRealFeatures.getCPtr(simple_features)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #8
0
 internal static HandleRef getCPtr(ShortRealFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #9
0
 public bool obtain_from_simple(ShortRealFeatures sf) {
   bool ret = modshogunPINVOKE.SparseShortRealFeatures_obtain_from_simple(swigCPtr, ShortRealFeatures.getCPtr(sf));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #10
0
 public ShortRealFeatures(ShortRealFeatures orig) : this(modshogunPINVOKE.new_ShortRealFeatures__SWIG_2(ShortRealFeatures.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #11
0
 internal static HandleRef getCPtr(ShortRealFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }