示例#1
0
 public HashedWDFeatures(HashedWDFeatures orig) : this(modshogunPINVOKE.new_HashedWDFeatures__SWIG_3(HashedWDFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
	public static void Main() {
		modshogun.init_shogun_with_defaults();
		int order = 3;
		int start_order = 1;
		int hash_bits = 2;

		int from_order = order;
		StringByteFeatures f = new StringByteFeatures(EAlphabet.RAWDNA);
		HashedWDFeatures y = new HashedWDFeatures(f,start_order,order,from_order,hash_bits);

	}
示例#3
0
    public static void Main()
    {
        modshogun.init_shogun_with_defaults();
        int order       = 3;
        int start_order = 1;
        int hash_bits   = 2;

        int from_order       = order;
        StringByteFeatures f = new StringByteFeatures(EAlphabet.RAWDNA);
        HashedWDFeatures   y = new HashedWDFeatures(f, start_order, order, from_order, hash_bits);
    }
    internal static ArrayList run(IList para)
    {
        bool reverse = false;
        modshogun.init_shogun_with_defaults();
        DoubleMatrix A = (DoubleMatrix)para[0];
        int order = (int)((int?)para[1]);
        int start_order = (int)((int?)para[2]);
        int hash_bits = (int)((int?)para[3]);

        int from_order = order;
        StringByteFeatures f = new StringByteFeatures(RAWDNA);
        //f.set_features(new DoubleMatrix(new double[][]{{0,1,2,3,0,1,2,3,3,2,2,1,1}}));

        HashedWDFeatures y = new HashedWDFeatures(f,start_order,order,from_order,hash_bits);
        //DoubleMatrix fm = y.get_feature_matrix();

        ArrayList result = new ArrayList();
        result.Add(y);

        modshogun.exit_shogun();

        return result;
    }
示例#5
0
 internal static HandleRef getCPtr(HashedWDFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
示例#6
0
 public HashedWDFeatures(HashedWDFeatures orig) : this(modshogunPINVOKE.new_HashedWDFeatures__SWIG_3(HashedWDFeatures.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#7
0
 internal static HandleRef getCPtr(HashedWDFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }