List/Node based ILC
Inheritance: BasicIndex
Beispiel #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);
            }
        }
Beispiel #2
0
        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;
        }