public class ProbBackoffPair extends Object implements Comparable<ProbBackoffPair>, LongRepresentable<ProbBackoffPair>
Constructor and Description |
---|
ProbBackoffPair(float logProb,
float backoff) |
ProbBackoffPair(long probBackoff) |
public ProbBackoffPair(long probBackoff)
public ProbBackoffPair(float logProb, float backoff)
public int compareTo(ProbBackoffPair arg0)
compareTo
in interface Comparable<ProbBackoffPair>
public long asLong()
asLong
in interface LongRepresentable<ProbBackoffPair>
public static long floatsToLong(float prob, float backoff)
prob
- backoff
- public static float probOf(long key)
public static float backoffOf(long key)