public class PairManager extends Object
Constructor and Description |
---|
PairManager()
Constructor
|
PairManager(boolean isReferencePairing)
Constructor, number of pairs of robust points depends on the parameter isReferencePairing
no. of pairs of reference and sample can be different due to environmental influence of source
|
Modifier and Type | Method and Description |
---|---|
HashMap<Integer,List<Integer>> |
getPair_PositionList_Table(byte[] fingerprint)
Get a pair-positionList table
It's a hash map which the key is the hashed pair, and the value is list of positions
That means the table stores the positions which have the same hashed pair
|
static int |
pairBytesToHashcode(byte[] pairBytes)
Convert bytes to hased pair
|
static byte[] |
pairHashcodeToBytes(int pairHashcode)
Convert hashed pair to bytes
|
public PairManager()
public PairManager(boolean isReferencePairing)
isReferencePairing
- public HashMap<Integer,List<Integer>> getPair_PositionList_Table(byte[] fingerprint)
fingerprint
- fingerprint bytespublic static byte[] pairHashcodeToBytes(int pairHashcode)
pairHashcode
- hashed pairpublic static int pairBytesToHashcode(byte[] pairBytes)
pairBytes
- Copyright © 2020. All rights reserved.