Package | Description |
---|---|
com.simiacryptus.util.binary | |
com.simiacryptus.util.binary.bitset | |
com.simiacryptus.util.binary.codes |
Modifier and Type | Field and Description |
---|---|
static Bits |
Bits.NULL
The constant NULL.
|
static Bits |
Bits.ONE
The constant ONE.
|
static Bits |
Bits.ZERO
The constant ZERO.
|
Modifier and Type | Method and Description |
---|---|
Bits |
Bits.bitwiseAnd(Bits right)
Bitwise and bits.
|
Bits |
Bits.bitwiseOr(Bits right)
Bitwise or bits.
|
Bits |
Bits.bitwiseXor(Bits right)
Bitwise xor bits.
|
Bits |
Bits.concatenate(Bits right)
Concatenate bits.
|
static Bits |
Bits.divide(long numerator,
long denominator,
long maxBits)
Divide bits.
|
Bits |
Bits.leftShift(int bits)
Left shift bits.
|
Bits |
Bits.next()
Returns the next binary string which is of the same length but incremented by one.
|
Bits |
Bits.padLeft(int targetLength)
Pad left bits.
|
Bits |
Bits.padRight(long targetLength)
Pad right bits.
|
Bits |
BitInputStream.peek(int bits)
Peek bits.
|
Bits |
Bits.range(int start)
Range bits.
|
Bits |
Bits.range(int start,
int length)
Range bits.
|
Bits |
BitInputStream.read(int bits)
Read bits.
|
Bits |
BitInputStream.readAhead()
Read ahead bits.
|
Bits |
BitInputStream.readAhead(int bytes)
Read ahead bits.
|
Bits |
Interval.toBits()
To bits bits.
|
static Bits |
BitOutputStream.toBits(Consumer<BitOutputStream> fn)
To bits bits.
|
Bits |
BitOutputStream.writeBoundedLong(long value,
long max)
Write bounded long bits.
|
Modifier and Type | Method and Description |
---|---|
Bits |
Bits.bitwiseAnd(Bits right)
Bitwise and bits.
|
Bits |
Bits.bitwiseOr(Bits right)
Bitwise or bits.
|
Bits |
Bits.bitwiseXor(Bits right)
Bitwise xor bits.
|
int |
Bits.compareTo(Bits arg0) |
Bits |
Bits.concatenate(Bits right)
Concatenate bits.
|
static int |
Bits.dataCompare(Bits left,
Bits right)
Data compare int.
|
void |
BitInputStream.expect(Bits bits)
Expect.
|
boolean |
Bits.startsWith(Bits key)
Starts apply boolean.
|
void |
BitOutputStream.write(Bits bits)
Write.
|
Modifier and Type | Class and Description |
---|---|
class |
BitsCollection<C extends Map<Bits,AtomicInteger>>
The type Bits collection.
|
Modifier and Type | Field and Description |
---|---|
Bits |
CountTreeBitsCollection.BranchCounts.path
The Path.
|
Modifier and Type | Method and Description |
---|---|
TreeMap<Bits,Long> |
CountTreeBitsCollection.computeSums()
Compute sums tree apply.
|
Modifier and Type | Method and Description |
---|---|
BitsCollection.CodeType |
BitsCollection.getType(Bits bits)
Gets type.
|
protected CountTreeBitsCollection.BranchCounts |
CountTreeBitsCollection.readBranchCounts(BitInputStream in,
Bits code,
long size)
Read branch counts branch counts.
|
protected long |
CountTreeBitsCollection.readZeroBranchSize(BitInputStream in,
long max,
Bits code)
Read zero branch size long.
|
protected void |
CountTreeBitsCollection.writeZeroBranchSize(BitOutputStream out,
long value,
long max,
Bits bits)
Write zero branch size.
|
Constructor and Description |
---|
BranchCounts(Bits path,
long size)
Instantiates a new Branch counts.
|
BranchCounts(Bits path,
long size,
long terminals,
long zeroCount,
long oneCount)
Instantiates a new Branch counts.
|
Modifier and Type | Field and Description |
---|---|
protected TreeMap<Bits,T> |
HammingCode.forwardIndex
The Forward index.
|
protected HashMap<T,Bits> |
HammingCode.reverseIndex
The Reverse index.
|
Modifier and Type | Method and Description |
---|---|
Bits |
HammingCode.encode(T key)
Encode bits.
|
Modifier and Type | Method and Description |
---|---|
Map.Entry<Bits,T> |
HammingCode.decode(Bits data)
Decode entry.
|
SortedMap<Bits,T> |
HammingCode.getCodes(Bits fromKey)
Gets codes.
|
Modifier and Type | Method and Description |
---|---|
Map.Entry<Bits,T> |
HammingCode.decode(Bits data)
Decode entry.
|
SortedMap<Bits,T> |
HammingCode.getCodes(Bits fromKey)
Gets codes.
|
BitsCollection.CodeType |
HammingCode.HammingCodeCollection.getType(Bits bits) |
Modifier and Type | Method and Description |
---|---|
static boolean |
HammingCode.isPrefixFreeCode(Set<Bits> keySet)
Is prefix free run boolean.
|
Copyright © 2019 SimiaCryptus Software. All rights reserved.