Package fr.neatmonster.nocheatplus.utilities.ds.bktree.SimpleTimedBKLevenshtein

Examples of fr.neatmonster.nocheatplus.utilities.ds.bktree.SimpleTimedBKLevenshtein.STBKLResult


  @Override
  protected float getScore(final List<Character> chars, final long ts) {
    // TODO: very short words, very long words.
    lastAdd = ts;
    final char[] a = DigestedWords.toArray(chars);
    final STBKLResult result = tree.lookup(a, range, maxSeek, true);
    if (result.isNew) added ++;
    // Calculate time score.
    float score = 0f;
    if (!result.isNew && result.match != null){
      final long age = ts - result.match.ts;
View Full Code Here


      }
      ,
      new LookupEntryFactory<char[], SimpleTimedLevenNode, STBKLResult>() {
        @Override
        public STBKLResult newLookupEntry(Collection<SimpleTimedLevenNode> nodes, SimpleTimedLevenNode match, int distance, boolean isNew) {
          return new STBKLResult(nodes, match, distance, isNew);
        }
      }
      );
  }
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.utilities.ds.bktree.SimpleTimedBKLevenshtein.STBKLResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.