List/Node based ILC
상속: BasicIndex
예제 #1
0
        public override void Load(BinaryReader Input)
        {
            base.Load(Input);
            var num = Input.ReadInt32 ();

            this.leader = new XNANNI();
            this.leader.Load (Input);

            this.rows = new TANNI[num];
            for (int i = 0; i < num; ++i) {
                this.rows[i] = new TANNI();
                this.rows[i].Load (Input);
            }
        }
예제 #2
0
파일: Indexes.cs 프로젝트: sadit/natix
        public static string ExecuteDNANNI(IndexArgumentSetup setup, string nick)
        {
            var idxname = String.Format ("{0}/Index.DNANNI", nick);
            var resname = Execute (setup, nick, idxname, (db) => {
                var nilc = new XNANNI ();
                var annisetup = new ANNISetup(db.Count, (int)Math.Abs(setup.QARG));
                // var annisetup = new ANNISetup(new PivotSelectorRandom(db.Count), (int)Math.Abs(setup.QARG), 0.001, 128, 64);
                nilc.Build (db, annisetup, true);
                return nilc;
            });

            return resname;
        }