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); }
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); }
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; }
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; }
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(); } }
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(); } }
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(); } }
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(); }
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(); }
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(); } }
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(); } }
public virtual void set_features(DotFeatures feat) { modshogunPINVOKE.LinearMachine_set_features(swigCPtr, DotFeatures.getCPtr(feat)); if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
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(); }
public virtual void set_features(DotFeatures features) { modshogunPINVOKE.GaussianNaiveBayes_set_features(swigCPtr, DotFeatures.getCPtr(features)); if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
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(); }
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(); }
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(); }
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(); } }
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(); } }
public void obtain_from_dot(DotFeatures df) { modshogunPINVOKE.IntFeatures_obtain_from_dot(swigCPtr, DotFeatures.getCPtr(df)); if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }
internal static HandleRef getCPtr(DotFeatures obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
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(); } }
internal static HandleRef getCPtr(DotFeatures obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }