Package | Description |
---|---|
gov.sandia.cognition.hash |
Provides hash function implementations.
|
gov.sandia.cognition.learning.data.feature |
Provides data feature extractors.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHashFunction
Partial implementation of HashFunction
|
class |
Eva32Hash
This implements the 32-bit "evahash" due to Robert Jenkins.
|
class |
Eva64Hash
This implements the 64-bit "evahash" due to Robert Jenkins.
|
class |
FNV1a32Hash
Implementation of the 32-bit (4-byte) Fowler-Noll-Vo (FNV-1a) hash function.
|
class |
FNV1a64Hash
Implementation of the 32-bit (4-byte) Fowler-Noll-Vo (FNV-1a) hash function.
|
class |
MD5Hash
Implementation of the MD5 128-bit (16-byte) cryptographic hash function.
|
class |
Murmur32Hash
Implementation of the MurmurHash2 32-bit (4-byte) non-cryptographic hash
function.
|
class |
Prime32Hash
Implementation of the prime-hash function using 32-bit (4-byte) precision.
|
class |
Prime64Hash
Implementation of the prime-hash function using 64-bit (8-byte) precision.
|
class |
SHA1Hash
A Java implementation of the Secure Hash Algorithm, SHA-1, as defined
in FIPS PUB 180-1.
|
class |
SHA256Hash
The SHA-2, 256-bit (32 byte) hash function.
|
class |
SHA512Hash
The SHA-2 512-bit (64-byte) hash function.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
HashFunctionUtil.combineHash(HashFunction hash,
boolean ordered,
byte[]... inputs)
Cascades the hash codes
|
static byte[] |
HashFunctionUtil.salt(HashFunction hash,
byte[]... inputs)
Computes the salted hash of the given inputs, that is, we concatenate
the inputs together and compute the hash of the concatenated bytes.
|
static void |
HashFunctionUtil.saltInto(byte[] output,
HashFunction hash,
byte[]... inputs)
Computes the salted hash of the given inputs, that is, we concatenate
the inputs together and compute the hash of the concatenated bytes.
|
Modifier and Type | Field and Description |
---|---|
protected HashFunction |
FeatureHashing.hashFunction
The hashing function to use.
|
Modifier and Type | Method and Description |
---|---|
HashFunction |
FeatureHashing.getHashFunction()
Gets the hash function to use.
|
Modifier and Type | Method and Description |
---|---|
void |
FeatureHashing.setHashFunction(HashFunction hashFunction)
Gets the hash function to use.
|
Constructor and Description |
---|
FeatureHashing(int outputDimensionality,
HashFunction hashFunction,
VectorFactory<?> vectorFactory)
Creates a new
FeatureHashing with the given parameters. |